/*--------------------------------------------------------------
  Recipe card, instructions, timers and cook mode (recipe pages only)
  Every rule is scoped to .rc / .rc-method / .rc-dock / .rc-cook / .rc-modal
  so it outranks the site-wide `button`, `h2/h3`, `li` and `label` rules in style.css.
--------------------------------------------------------------*/
:root {
  --rc-ink: #2f2f2f;
  --rc-btn-ink: #121212;
  --rc-body: #575757;
  --rc-label: #6e6e6e;      /* darker label grey: 4.55:1 on #F3F2EC, 5.06:1 on the card */
  --rc-sand: #C5A992;
  --rc-card: #FFFEFB;
  --rc-line: #E2DBCD;
  --rc-done: #b0aa9f;
  --rc-shadow: 0 1px 2px rgba(120, 96, 70, .05), 0 14px 40px -18px rgba(120, 96, 70, .25);
}


/* ---------- shared button look: the navbar "Read Online" button ---------- */
.rc .rc-btn,
.rc-method .rc-btn,
.rc-cook .rc-btn,
.rc-modal .rc-btn,
.rv .rc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  margin: 0;
  background: transparent;
  border: 1px solid var(--rc-btn-ink);
  border-radius: 30px;
  padding: 3px 15px;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rc-btn-ink);
  white-space: nowrap;
  box-shadow: none;
  transition: border-color 300ms ease, color 300ms ease;
}
.rc .rc-btn:active,
.rc-method .rc-btn:active,
.rc-cook .rc-btn:active,
.rc-modal .rc-btn:active,
.rv .rc-btn:active {
  box-shadow: none;
}
.rc .rc-btn[aria-pressed="true"],
.rc-method .rc-btn[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--rc-btn-ink);
}
.rc .rc-btn[aria-pressed="true"]::before,
.rc-method .rc-btn[aria-pressed="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.rc button:focus-visible,
.rc input:focus-visible,
.rc-method button:focus-visible,
.rc-method input:focus-visible,
.rc-dock button:focus-visible,
.rc-cook button:focus-visible,
.rc-modal button:focus-visible,
.rv button:focus-visible {
  outline: 2px solid var(--rc-ink);
  outline-offset: 3px;
}

.rc .rc-tab {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 26px;
  color: var(--rc-btn-ink);
  margin: 0;
}

/* ---------- star rating under the recipe title (option B, filled in by js/reviews.js; clicking it scrolls to the reviews) ---------- */
.rt-line { margin: 16px 0 0; }
.rt-line[hidden] { display: none; }
.rt {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rc-label);
  transition: color 300ms ease;
}
.rt b { font-weight: 400; color: var(--rc-ink); transition: color 300ms ease; }
.rt-stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; color: var(--rc-sand); }
.rt-stars svg { width: 18px; height: 18px; margin-right: 3px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.rt-stars-full { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; }
.rt-stars-full svg { fill: currentColor; }
.rt:focus-visible { outline: 2px solid var(--rc-ink); outline-offset: 4px; }
/* phones: smaller, and centred like the title (style.css centres .page-title up to 768px) */
@media screen and (max-width: 768px) {
  .rt-line { margin-top: 10px; text-align: center; }
  .rt { font-size: 12px; letter-spacing: 1.5px; gap: 4px 10px; justify-content: center; }
  .rt-stars svg { width: 14px; height: 14px; margin-right: 2px; }
}

/* ---------- card ---------- */
.rc { margin: 0 0 56px; }
/* links to a second recipe (#gelato) or to reviews land below the fixed menu bar */
.rc-block, .rv { scroll-margin-top: 100px; }
/* tab row: Ingredients tab on the left, prep/cook times on the right, kept inside the card's right edge */
.rc-tabrow {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  position: relative;
  z-index: 2;
  margin: 0 4px 0 28px;
}
.rc-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
  padding-bottom: 12px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--rc-label);
}
.rc-times span { white-space: nowrap; }
.rc-times span + span::before { content: "·"; margin: 0 10px; }
.rc-times span.rc-line-start::before { visibility: hidden; }   /* set by js/recipe.js on a wrapped line's first item */
.rc-times b { font-weight: 400; color: var(--rc-ink); }
.rc .rc-tab {
  display: inline-block;
  flex: none;
  position: relative;
  z-index: 2;
  margin-left: 0;
  background: var(--rc-card);
  border: 1px solid var(--rc-line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 9px 22px 10px;
}
.rc-card {
  position: relative;
  top: -1px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);  /* minmax: long ingredient names must not widen the card */
  background: var(--rc-card);
  border: 1px solid var(--rc-line);
  border-radius: 4px 12px 12px 12px;
  box-shadow: var(--rc-shadow);
  color: var(--rc-body);
}

.rc-controls {
  padding: 34px 32px;
  border-right: 1px dashed var(--rc-line);
}
.rc .rc-lbl {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rc-label);
  line-height: 1.6;
}
.rc-dial {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 6px 0 2px;
}
.rc .rc-count {
  font-family: "Prata", Georgia, serif;
  font-size: 76px;
  line-height: 1;
  color: var(--rc-ink);
  min-width: 64px;
  text-align: center;
  font-variant-numeric: lining-nums;
}
.rc .rc-count.is-range { font-size: 54px; }
.rc .rc-round {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rc-btn-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--rc-btn-ink);
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  box-shadow: none;
  transition: border-color 300ms ease, color 300ms ease;
}
.rc .rc-round:active { box-shadow: none; }
.rc .rc-round:disabled { opacity: .35; transform: none; cursor: default; }
.rc-people {
  font-size: 15px;
  color: var(--rc-body);
  margin: 0 0 12px;
  padding-left: 60px;
}
.rc-picks {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
  margin: 0 0 30px;
}
.rc-picks span { color: var(--rc-label); font-style: italic; }
/* batch sizes (gelato: 100 g … 1 L) are too wide to share a line with the label, so the label goes above them */
.rc[data-mode="batch"] .rc-picks { flex-wrap: wrap; row-gap: 2px; }
.rc[data-mode="batch"] .rc-picks span { flex-basis: 100%; }
.rc .rc-picks button {
  height: auto;
  margin: 0;
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px 0 #CFCAC0;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  text-transform: none;
  color: var(--rc-ink);
  font-variant-numeric: lining-nums;
  transition: color 300ms ease;
}
.rc .rc-picks button[aria-pressed="true"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--rc-sand); }

.rc-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rc-btn-ink);
  border-radius: 30px;
  padding: 3px;
  margin: 8px 0 28px;
}
.rc .rc-track button,
.rc-method .rc-tempsw button {
  height: auto;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 30px;
  color: var(--rc-label);
  transition: color 300ms ease;
}
.rc .rc-track button[aria-checked="true"],
.rc-method .rc-tempsw button[aria-checked="true"] {
  color: var(--rc-btn-ink);
  box-shadow: inset 0 0 0 1px var(--rc-btn-ink);
}
/* baker's % switch: only shown in % view on recipes with flour */
.rc-pctmode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #CFCAC0;
  border-radius: 30px;
  padding: 2px;
  margin: -18px 0 24px;
}
.rc-pctmode[hidden] { display: none; }
.rc .rc-pctmode button {
  height: auto;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
  text-transform: none;
  color: var(--rc-label);
  transition: color 300ms ease;
}
.rc .rc-pctmode button[aria-checked="true"] { color: var(--rc-ink); box-shadow: inset 0 0 0 1px var(--rc-btn-ink); }
.rc .rc-pctmode button:active { box-shadow: inset 0 0 0 1px var(--rc-btn-ink); }

.rc-total { font-size: 14px; line-height: 1.7; color: var(--rc-body); }
.rc-total b { font-family: "Prata", Georgia, serif; font-weight: 400; font-size: 20px; color: var(--rc-ink); }
.rc-pot, .rc-dish, .rc-hint { display: block; }

/* ingredient list: name first, dotted leader, then the amount */
.rc-list {
  padding: 30px 36px 18px;
  columns: 2;
  column-gap: 44px;
}
.rc-sec { break-inside: avoid; margin-bottom: 24px; }
.rc .rc-sec h3 {
  font-family: "Prata", Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  text-transform: none;
  color: var(--rc-ink);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rc-sand);
}
.rc .rc-sec ul { list-style: none; margin: 0; padding: 0; }
.rc .rc-ing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 3px 0;
  font-size: 15px;
  line-height: 1.7;
}
.rc .rc-ing label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  min-width: 0;
}
.rc-name { color: var(--rc-ink); }
/* the note follows the name on the same line ("Onion diced"); on a phone a long one wraps */
.rc-note {
  display: inline;
  font-size: 14px;
  font-style: italic;
  color: var(--rc-label);
  margin: 0 0 0 7px;
}
.rc-lead {
  flex: 1;
  min-width: 18px;
  border-bottom: 1px dotted #c9c3b6;
  transform: translateY(-5px);
}
.rc-qty {
  color: var(--rc-ink);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.rc-qty small { font-size: 13px; font-weight: 400; color: var(--rc-body); }
.rc-qty.rc-ar { font-weight: 400; font-style: italic; color: var(--rc-label); font-size: 14px; }
.rc-or { font-style: italic; color: var(--rc-label); }   /* "or Lucuma Powder": an alternative to the line above */

.rc-alg .rc-name { font-weight: 700; }
.rc-alg .rc-note { font-weight: 400; }
/* the allergen line draws its diamond inside the name, so "◇ TREE NUTS" can't be split across two lines */
.rc-alg .rc-name::before,
.rc-strip .rc-algname::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--rc-ink);
  transform: rotate(45deg);
  margin: 0 8px 2px 2px;
}
.rc-dia { display: none; }
.rc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* tick boxes (ingredients and steps) */
.rc .rc-check,
.rc-method .rc-check {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #8f897e;
  border-radius: 4px;
  background: transparent;
  position: relative;
  cursor: pointer;
  transform: translateY(3px);
}
.rc .rc-check:checked,
.rc-method .rc-check:checked { background: var(--rc-ink); border-color: var(--rc-ink); }
.rc .rc-check:checked::after,
.rc-method .rc-check:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #F3F2EC;
  border-bottom: 2px solid #F3F2EC;
  transform: rotate(45deg);
}
.rc.is-ticking .rc-check,
.rc-method.is-ticking .rc-check { display: inline-block; }
.rc.is-ticking .rc-ing label { cursor: pointer; }
.rc .rc-ing.is-done .rc-name,
.rc .rc-ing.is-done .rc-qty,
.rc .rc-ing.is-done .rc-qty small,
.rc .rc-ing.is-done .rc-note {
  color: var(--rc-done);
  text-decoration: line-through;
  text-decoration-color: var(--rc-done);
}
.rc .rc-ing.is-done .rc-name::before { border-color: var(--rc-done); }

.rc-strip {
  grid-column: 1 / -1;
  padding: 16px 32px;
  border-top: 1px dashed var(--rc-line);
  font-size: 15px;
  line-height: 2;
}
.rc-strip strong { color: var(--rc-body); font-weight: 700; }
.rc-strip .rc-algname { color: var(--rc-ink); letter-spacing: .5px; white-space: nowrap; }

.rc-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 32px 20px;
  border-top: 1px dashed var(--rc-line);
}
.rc-actions[hidden] { display: none; }
.rc-tempsw {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rc-btn-ink);
  border-radius: 30px;
  padding: 2px;
}
.rc-tempsw[hidden] { display: none; }
/* °C / °F sits in the Instructions heading (the temperatures are in the steps), as tall as "Tick off steps" */
.rc-method-head .rc-tempsw { padding: 1px; }
.rc-method .rc-tempsw button { line-height: 22px; padding: 0 10px; letter-spacing: 0; font-size: 11px; }
.rc-small {
  margin-left: auto;
  font-size: 13px;
  font-style: italic;
  color: var(--rc-label);
}

/* ---------- instructions ---------- */
.rc-method { color: var(--rc-body); margin-bottom: 40px; }
.rc-method-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rc-sand);
}
/* serif title like the dish name; the step tools sit right, one size smaller than the card's buttons */
.rc-method .rc-method-title {
  font-family: "Prata", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rc-ink);
  margin: 0 auto 0 0;
}
.rc-method-head .rc-btn { font-size: 11px; letter-spacing: 1.5px; line-height: 22px; padding: 1px 12px; }
.rc-method-head .rc-small { order: 5; width: 100%; margin: -6px 0 0; font-size: 12.5px; }
/* Desktop: "Select all" sits under "Tick off steps", on the hint's line; the row keeps the button's height
   so nothing moves when it appears. Phones keep the flex row, where it simply follows the button. */
@media screen and (min-width: 768px) {
  .rc-method-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto 26px;
    grid-template-areas: "title temp tick" "hint hint all";
    column-gap: 20px;
    row-gap: 6px;
    align-items: end;
  }
  .rc-method .rc-method-title { grid-area: title; margin: 0; }
  .rc-method-head .rc-tempsw { grid-area: temp; justify-self: end; }
  .rc-method-head [data-action="tick-steps"] { grid-area: tick; justify-self: end; }
  .rc-method-head [data-action="steps-all"] { grid-area: all; justify-self: end; }
  .rc-method-head .rc-small { grid-area: hint; width: auto; margin: 0; align-self: center; }
}
.rc-step-label { color: var(--rc-label); margin: 0; }
.rc-method .rc-steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.rc-method .rc-steps li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  line-height: 2;
}
.rc-method .rc-steps li::before { content: "•"; flex: none; width: 6px; }
.rc-method.is-ticking .rc-steps li::before { display: none; }
.rc-method.is-ticking .rc-steps li { cursor: pointer; }
.rc-method .rc-steps li.is-done > span { color: var(--rc-done); text-decoration: line-through; text-decoration-color: var(--rc-done); }
.rc-tip { margin: 0 0 8px; }

/* timers and scaled amounts inside the steps */
.rc-method .rc-timer,
.rc-cook .rc-timer {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  height: auto;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--rc-sand);
  font: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: inherit;
  color: var(--rc-ink);
  white-space: nowrap;
  transition: color 300ms ease;
}
.rc-method .rc-timer::before,
.rc-cook .rc-timer::before {
  content: "";
  width: .8em;
  height: .8em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  align-self: center;
  background: linear-gradient(currentColor, currentColor) 50% 18% / 1.5px 38% no-repeat;
}
.rc-method .rc-timer:active,
.rc-cook .rc-timer:active { box-shadow: inset 0 -2px 0 var(--rc-sand); }
.rc-timer.is-running { font-variant-numeric: tabular-nums; }
.rc-timer.is-finished { box-shadow: inset 0 -2px 0 var(--rc-ink); }
.rc-mq, .rc-len, .rc-tval { font-weight: 600; color: var(--rc-ink); }

/* ---------- reviews ---------- */
.rv {
  --rv-star-o: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.85 5.95 6.55.85-4.8 4.55 1.2 6.5L12 17.5l-5.8 3.15 1.2-6.5-4.8-4.55 6.55-.85z' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
  --rv-star-f: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.85 5.95 6.55.85-4.8 4.55 1.2 6.5L12 17.5l-5.8 3.15 1.2-6.5-4.8-4.55 6.55-.85z' fill='black' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E");
  margin: 8px 0 56px;
  color: var(--rc-body);
}
.rv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 24px;
  margin: 0 0 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rc-sand);
}
.rv .rv-title {
  font-family: "Prata", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rc-ink);
  margin: 0 auto 0 0;
}
.rv-summary { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.rv-avg { font-family: "Prata", Georgia, serif; font-size: 22px; line-height: 1; color: var(--rc-ink); }
.rv-count, .rv-empty { font-size: 14px; color: var(--rc-label); }
.rv-empty { font-style: italic; }

/* stars: an outline row with a filled row on top, cut to the score's width */
.rv-stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; vertical-align: middle; }
.rv-stars svg { width: 18px; height: 18px; margin-right: 2px; stroke: var(--rc-ink); stroke-width: 1.3; stroke-linejoin: round; }
.rv-stars-empty svg { fill: none; }
.rv-stars-full { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; }
.rv-stars-full svg { fill: var(--rc-ink); }

.rv .rv-list { list-style: none; margin: 0 0 30px; padding: 0; }
.rv .rv-item { margin: 0; padding: 18px 0; border-bottom: 1px dashed var(--rc-line); }
.rv-who { margin-top: 6px; font-size: 15px; line-height: 1.6; }
.rv-name { color: var(--rc-ink); font-weight: 600; }
.rv-place, .rv-date { color: var(--rc-label); }
.rv-place::before, .rv-date::before { content: "·"; margin: 0 8px; }
.rv .rv-comment { margin: 8px 0 0; line-height: 1.8; white-space: pre-line; }

/* form */
.rv-form {
  background: var(--rc-card);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  box-shadow: var(--rc-shadow);
  padding: 26px 30px 24px;
}
.rv .rv-form-title {
  font-family: "Prata", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
  color: var(--rc-ink);
  margin: 0 0 16px;
}
.rv .rv-rate { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.rv .rv-rate legend,
.rv .rv-field label {
  display: block;
  float: none;
  width: auto;
  margin: 0 0 6px;
  padding: 0;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--rc-label);
}
.rv .rv-field label span { font-family: "Raleway", sans-serif; font-size: 12px; font-style: italic; letter-spacing: 0; text-transform: none; line-height: 1; }
.rv-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rv .rv-pick input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.rv .rv-pick label { display: block; margin: 0; padding: 2px; cursor: pointer; border-radius: 6px; }
.rv .rv-pick label::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background: var(--rc-ink);
  -webkit-mask: var(--rv-star-o) center / 32px no-repeat;
  mask: var(--rv-star-o) center / 32px no-repeat;
}
/* row-reverse: the checked star and every star after it in the HTML (the lower ones, shown to its left) fill in */
.rv .rv-pick input:checked ~ label::before { -webkit-mask-image: var(--rv-star-f); mask-image: var(--rv-star-f); }
.rv .rv-pick input:focus-visible + label { outline: 2px solid var(--rc-ink); outline-offset: 1px; }
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.rv-field { margin-bottom: 14px; }
.rv .rv-field input,
.rv .rv-field textarea {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #CFCAC0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--rc-ink);
}
.rv .rv-field textarea { min-height: 112px; resize: vertical; }
.rv .rv-field input:focus,
.rv .rv-field textarea:focus { border-color: var(--rc-ink); outline: 2px solid var(--rc-ink); outline-offset: 1px; }
.rv-hint { margin-top: 4px; font-size: 12.5px; font-style: italic; color: var(--rc-label); }
.rv-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 4px; }
.rv-note { font-size: 13px; font-style: italic; color: var(--rc-label); }
.rv .rc-btn:disabled { opacity: .5; transform: none; cursor: default; }
/* message colours follow the site's newsletter form; error text uses the ink colour for contrast */
.rv-msg:empty { display: none; }
.rv-msg { margin-top: 14px; padding: 10px 12px; border-radius: 6px; font-size: 15px; white-space: pre-line; }
.rv-msg.is-ok { color: #2D672E; background: #F3F2EC; }
.rv-msg.is-error { color: var(--rc-ink); background: #f8d7da; border-left: 3px solid #dc3545; }

/* ---------- running timers ---------- */
.rc-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1065;             /* above cook mode so running timers stay visible */
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 280px;
  max-width: calc(100vw - 40px);
}
.rc-dock-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  background: var(--rc-card);
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  padding: 10px 12px 10px 16px;
  box-shadow: var(--rc-shadow);
  color: var(--rc-body);
  font-family: "Raleway", sans-serif;
}
.rc-dock-lbl { display: block; font-size: 12px; line-height: 1.4; color: var(--rc-label); }
.rc-dock-time { display: block; font-family: "Prata", Georgia, serif; font-size: 26px; line-height: 1.2; color: var(--rc-ink); font-variant-numeric: tabular-nums; }
.rc-dock .rc-dbtn {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--rc-btn-ink);
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--rc-btn-ink);
  transition: border-color 300ms ease, color 300ms ease;
}
.rc-dock .rc-dbtn:active { box-shadow: none; }
.rc-dock-item.is-finished { background: var(--rc-ink); border-color: var(--rc-ink); animation: rc-pulse 1.2s ease-in-out infinite; }
.rc-dock-item.is-finished .rc-dock-lbl { color: #cfc9be; }
.rc-dock-item.is-finished .rc-dock-time { color: #F3F2EC; }
.rc-dock-item.is-finished .rc-dbtn { color: #F3F2EC; border-color: #F3F2EC; }
/* a soft sand ring pulses round a finished timer; nothing moves */
@keyframes rc-pulse { 50% { box-shadow: 0 0 0 6px rgba(197, 169, 146, .55); } }

/* ---------- cook mode ---------- */
.rc-cook {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: #F3F2EC;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.rc-cook[hidden] { display: none; }
.rc-cook-inner {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.rc-cook-top { display: flex; align-items: center; gap: 16px; }
.rc-cook-title { font-family: "Jost", sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--rc-label); margin-right: auto; }
.rc-cook-awake { font-size: 13px; font-style: italic; color: var(--rc-label); }
.rc-cook .rc-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rc-btn-ink);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--rc-btn-ink);
  transition: border-color 300ms ease, color 300ms ease;
}
.rc-cook-bar { height: 2px; background: var(--rc-line); margin: 20px 0 0; }
.rc-cook-bar i { display: block; height: 100%; background: var(--rc-sand); transition: width 300ms ease; }
.rc-cook-count { margin: 34px 0 4px; font-family: "Jost", sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--rc-label); }
.rc-cook-sec { font-family: "Prata", Georgia, serif; font-size: 22px; color: var(--rc-ink); margin: 0 0 18px; }
.rc-cook-step { flex: 1; font-family: "Raleway", sans-serif; font-size: 28px; line-height: 1.6; color: var(--rc-ink); }
/* what the step shown uses, at the bottom above Back / Next; same name … amount ledger as the card */
.rc-cook-ings { margin: 24px 0 28px; padding-top: 16px; border-top: 1px solid var(--rc-line); }
.rc-cook-ings[hidden] { display: none; }
.rc-cook-ings-lbl { font-family: "Jost", sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--rc-label); margin: 0 0 8px; }
.rc-cook .rc-cook-ings ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 44px; }
/* name … amount on one line; a note ("the remaining 1 tsp goes in at step 11", "from step 1") on its own line below */
.rc-cook .rc-cook-ings li {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(18px, 1fr) auto;
  column-gap: 10px;
  align-items: baseline;
  margin: 0;
  padding: 3px 0;
  break-inside: avoid;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--rc-ink);
}
.rc-cook-ing-qty { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.rc-cook-ing-qty small { font-size: 15px; font-weight: 400; color: var(--rc-body); }
.rc-cook-ing-qty.rc-ar { font-size: 16px; font-weight: 400; font-style: italic; color: var(--rc-label); }
.rc-cook-ing-note { grid-column: 1 / -1; font-size: 14px; font-style: italic; line-height: 1.35; color: var(--rc-label); margin: -1px 0 3px; }
.rc-cook-nav { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; }
.rc-cook .rc-cook-nav .rc-btn { font-size: 14px; padding: 10px 28px; }
.rc-cook .rc-cook-nav .rc-btn:disabled { opacity: .3; transform: none; cursor: default; }
.rc-cook-keys { text-align: center; font-size: 12px; font-style: italic; color: var(--rc-label); margin-top: 14px; }

/* ---------- send to phone ---------- */
.rc-modal {
  position: fixed;
  inset: 0;
  z-index: 1070;
  display: grid;
  place-items: center;
  background: rgba(47, 47, 47, .45);
  padding: 20px;
}
.rc-modal[hidden] { display: none; }
.rc-modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--rc-card);
  border-radius: 14px;
  padding: 28px 28px 24px;
  text-align: center;
  box-shadow: var(--rc-shadow);
  color: var(--rc-body);
}
.rc-modal-box h2 { font-family: "Prata", Georgia, serif; font-size: 24px; text-transform: none; margin: 0 0 6px; color: var(--rc-ink); }
.rc-modal-box .rc-close { position: absolute; top: 12px; right: 12px; }
.rc-qrblock { border-top: 1px dashed var(--rc-line); margin-top: 18px; padding-top: 16px; }
.rc-qrblock .rc-lbl { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--rc-label); }
.rc-qrblock p { font-size: 13px; line-height: 1.6; margin: 4px 0 0; color: var(--rc-label); }
.rc-qr { width: 168px; height: 168px; margin: 10px auto 0; }
.rc-qr svg { width: 100%; height: 100%; display: block; }
.rc-modal-url { font-size: 12px; word-break: break-all; color: var(--rc-label); margin: 0 0 14px; }
.rc-modal-msg { margin: 0 0 6px; }
.rc-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 14px; }
.rc-modal a.rc-btn { text-decoration: none; }
.rc-modal .rc-close {
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0;
  border: 1px solid var(--rc-btn-ink); border-radius: 50%; background: transparent; box-shadow: none;
  font-family: "Raleway", sans-serif; font-size: 20px; font-weight: 400; line-height: 1; color: var(--rc-btn-ink);
  transition: border-color 300ms ease, color 300ms ease;
}

/* ---------- tablets: narrower controls, one ingredient column ---------- */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .rc-card { grid-template-columns: 250px minmax(0, 1fr); }
  .rc-controls { padding: 28px 24px; }
  .rc-dial { gap: 12px; }
  .rc .rc-count { font-size: 64px; }
  .rc .rc-count.is-range { font-size: 44px; }
  .rc-people { padding-left: 54px; }
  .rc-list { columns: 1; padding: 26px 28px 14px; }
}

/* ---------- phones ---------- */
@media screen and (max-width: 767px) {
  .rc-tabrow { margin-left: 16px; gap: 10px; }
  .rc .rc-tab { padding: 9px 14px 10px; letter-spacing: 1.5px; }
  .rc-times { font-size: 10.5px; letter-spacing: .6px; }
  .rc-tt { display: none; }
  .rc-card { grid-template-columns: 1fr; }
  .rc-controls { border-right: 0; border-bottom: 1px dashed var(--rc-line); padding: 24px 20px; }
  .rc-controls > .rc-lbl:first-child,
  .rc-dial,
  .rc-people,
  .rc-picks { justify-content: center; text-align: center; }
  .rc-people { padding-left: 0; }
  .rc-list { columns: 1; padding: 22px 20px 6px; }
  .rc-strip { padding: 14px 20px; }
  .rc-actions { padding: 16px 20px 18px; gap: 10px; }
  .rc-small { margin-left: 0; width: 100%; }
  .rc .rc-btn, .rc-method .rc-btn { margin: 0; }
  .rc-cook-inner { padding: 18px 20px 22px; }
  .rc-cook-step { font-size: 22px; }
  .rc-cook .rc-cook-ings ul { columns: 1; }
  .rc-cook .rc-cook-ings li { font-size: 16px; }
  .rc-method .rc-method-title { font-size: 30px; width: 100%; }
  .rv .rv-title { font-size: 30px; width: 100%; }
  .rv-row { grid-template-columns: 1fr; }
  .rv-form { padding: 22px 18px 20px; }
  .rc-cook .rc-cook-nav .rc-btn { padding: 10px 20px; }
  .rc-dock { right: 12px; bottom: 12px; left: 12px; width: auto; max-width: none; }
  body:has(.rc-dock-item) .rc-cook-inner { padding-bottom: 104px; }
}

/* very narrow phones: the two times stack instead of wrapping onto a line that starts with "·" */
@media screen and (max-width: 374px) {
  .rc-times { flex-direction: column; align-items: flex-end; line-height: 1.5; padding-bottom: 8px; }
  .rc-times span + span::before { content: none; }
}

/* hover only where there is a real pointer; on touch screens a tapped button would stay sand-coloured */
@media (hover: hover) {
  .rc .rc-btn:hover,
  .rc-method .rc-btn:hover,
  .rc-cook .rc-btn:hover,
  .rc-modal .rc-btn:hover,
  .rv .rc-btn:hover {
    background: transparent;
    color: var(--rc-sand);
    border-color: var(--rc-sand);
  }
  .rc .rc-round:hover {
    background: transparent;
    color: var(--rc-sand);
    border-color: var(--rc-sand);
  }
  .rc .rc-picks button:hover { background: transparent; color: var(--rc-sand); }
  .rt:hover, .rt:hover b { color: var(--rc-sand); }
  .rc .rc-track button:hover,
  .rc-method .rc-tempsw button:hover { background: transparent; color: var(--rc-sand); }
  .rc .rc-pctmode button:hover { background: transparent; color: var(--rc-sand); }
  .rc-method .rc-timer:hover,
  .rc-cook .rc-timer:hover { background: transparent; color: var(--rc-sand); }
  .rc-dock .rc-dbtn:hover { background: transparent; color: var(--rc-sand); border-color: var(--rc-sand); }
  .rc-cook .rc-close:hover { background: transparent; color: var(--rc-sand); border-color: var(--rc-sand); }
  .rv .rv-pick:hover input ~ label::before { -webkit-mask-image: var(--rv-star-o); mask-image: var(--rv-star-o); }
  .rv .rv-pick input ~ label:hover::before,
  .rv .rv-pick input ~ label:hover ~ label::before { -webkit-mask-image: var(--rv-star-f); mask-image: var(--rv-star-f); }
  .rc-modal .rc-close:hover { background: transparent; color: var(--rc-sand); border-color: var(--rc-sand); }
}

@media (prefers-reduced-motion: reduce) {
  .rc-dock-item.is-finished { animation: none; }
}

/* ---------- print: the card and the instructions only ---------- */
/* One A4 page: title on one line, the servings as a line across the top of the card, ingredients in two columns
   (the card takes about half the page), instructions in two columns below. These rules come last so they
   override the phone/tablet layouts, which the narrower printed page would otherwise pick up. */
/* The white border is the body's padding, not the page margin: a page can't choose the print dialog's margin
   setting, and this way "Default", "None" and "Minimum" all print the same (and leave no room for the browser's
   date/address header). */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  body { padding: 14mm 14mm 12mm !important; margin: 0 !important; }
  #navbar-placeholder, #footer-placeholder, .hamburger, .chief-detail, .chef-photo,
  .rc-actions, .rc-round, .rc-picks, .rc-track, .rc-units-lbl, .rc-hint, .rc-pctmode,
  .rc-method-head .rc-btn, .rc-tempsw, .rc-timer-hint, .rc-dock, .rc-cook, .rc-modal, #cookie-banner, .rv, .rt-line { display: none !important; }

  /* page frame: no screen gutters or spacing */
  .container { max-width: none !important; width: 100% !important; padding: 0 !important; }
  .container .row { margin: 0 !important; }
  .container [class*="col-"] { padding: 0 !important; }
  .single-image { padding-top: 0 !important; }

  /* title */
  .chef-heading { display: block !important; margin: 0 !important; }
  .page-title { font-size: 24pt !important; line-height: 1.15 !important; margin: 0 0 4mm !important; text-align: left !important; }
  .page-title br { display: none; }
  #gelato .page-title { margin-top: 0 !important; }
  /* a quiet credit on the title's line, at the right: it takes no extra height, so every recipe still fits one page */
  .page-title { position: relative; }
  .page-title::before,
  .page-title::after { position: absolute; right: 0; line-height: 1; white-space: nowrap; font-weight: 400; color: var(--rc-label); }
  .page-title::before { content: "Dew Arabia Recipes"; bottom: 4.8mm; font-family: "Jost", sans-serif; font-size: 7pt; letter-spacing: 1.6pt; text-transform: uppercase; }
  .page-title::after { content: "dewarabia.com"; bottom: 1.3mm; font-family: "Raleway", sans-serif; font-size: 8pt; letter-spacing: 0.2pt; text-transform: none; }

  /* card */
  .rc { margin: 0 0 5mm; }
  .rc-tabrow { margin: 0 2mm 0 5mm; gap: 4mm; }
  .rc .rc-tab { font-size: 8pt; letter-spacing: 1.5pt; line-height: 1.4; padding: 1.6mm 4mm 1.8mm; }
  .rc-times { font-size: 7.5pt; letter-spacing: 1pt; padding-bottom: 1.6mm; flex-direction: row; align-items: baseline; }
  .rc-times .rc-tt { display: inline; }
  .rc-times span + span::before, .rc-times span.rc-line-start::before { content: "·"; visibility: visible; margin: 0 2.2mm; }
  .rc-card { display: block; box-shadow: none; border-radius: 1.5mm 3mm 3mm 3mm; break-inside: avoid; }
  .rc-controls { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1mm 2.5mm; padding: 3mm 5mm 2.5mm; border-right: 0; border-bottom: 1px dashed var(--rc-line); }
  .rc-controls > .rc-lbl:first-child, .rc-dial, .rc-people { text-align: left; justify-content: flex-start; }
  .rc .rc-lbl { font-size: 7.5pt; letter-spacing: 1.5pt; }
  .rc-dial { margin: 0; gap: 0; }
  .rc .rc-count, .rc .rc-count.is-range { font-size: 18pt; min-width: 0; line-height: 1; }
  .rc-people { font-size: 10pt; margin: 0; padding-left: 0; }
  .rc-total { margin-left: auto; font-size: 9pt; line-height: 1.3; }
  .rc-total b { font-size: 12pt; }
  .rc-list { columns: 2; column-gap: 9mm; padding: 3mm 5mm 0; }
  /* a long section (the curry paste) may continue in the next column, so the two columns come out even */
  .rc-sec { margin-bottom: 3mm; break-inside: auto; }
  .rc .rc-sec h3 { font-size: 11.5pt; margin: 0 0 1mm; padding-bottom: 0.8mm; break-after: avoid; }
  .rc .rc-ing { font-size: 9.5pt; line-height: 1.3; padding: 0.2mm 0; gap: 2mm; break-inside: avoid; }
  .rc .rc-ing[data-alt] { break-before: avoid; }   /* an "or …" line stays with the line it replaces */
  .rc .rc-ing label { gap: 2mm; }
  .rc-qty small, .rc-qty.rc-ar { font-size: 8.5pt; }
  .rc-note { font-size: 8.5pt; margin: 0 0 0 1.8mm; }
  .rc-lead { transform: translateY(-1mm); }
  .rc-alg .rc-name::before, .rc-strip .rc-algname::before { width: 5px; height: 5px; margin: 0 6px 1px 1px; }
  .rc-strip { padding: 2.2mm 5mm 2.6mm; font-size: 8.5pt; line-height: 1.6; }

  /* instructions: the heading across the page, the steps in two columns */
  .rc-method { margin: 0; column-count: 2; column-gap: 9mm; }
  .rc-method-head { display: block; column-span: all; margin: 0 0 2.5mm; padding-bottom: 1.5mm; }
  .rc-method .rc-method-title { font-size: 15pt; width: auto; }
  .rc-step-label { font-size: 9.5pt; line-height: 1.35; margin: 0; break-after: avoid; }
  .rc-method .rc-steps { margin: 0 0 2mm; }
  .rc-method .rc-steps li { font-size: 9.5pt; line-height: 1.35; gap: 1.8mm; break-inside: avoid; }
  .rc-method .rc-timer { display: inline; padding: 0; gap: 0; font-size: inherit; }
  .rc-tip { font-size: 9.5pt; line-height: 1.35; }
  .rc .rc-check, .rc-method .rc-check { display: none !important; }
  .rc-people { padding-left: 0; }
  .rc .rc-ing.is-done .rc-name, .rc .rc-ing.is-done .rc-qty, .rc .rc-ing.is-done .rc-qty small, .rc .rc-ing.is-done .rc-note,
  .rc-method .rc-steps li.is-done > span { color: inherit; text-decoration: none; }
  .rc .rc-ing.is-done .rc-name { color: var(--rc-ink); }
  .rc .rc-ing.is-done .rc-qty { color: var(--rc-ink); }
  .rc-method .rc-steps li::before { display: inline !important; }
  .rc-method .rc-timer, .rc-cook .rc-timer { box-shadow: none; }
  .rc-method .rc-timer::before { display: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ---------- "Print card": overview of the five layouts ---------- */
.rc-modal-box.rc-print-box { max-width: 900px; }
.rc-print-intro { margin: 0 0 16px; font-size: 14px; color: var(--rc-label); }
.rc-layouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.rc-modal .rc-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: auto;
  margin: 0;
  padding: 6px 6px 8px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--rc-label);
  cursor: pointer;
  transition: border-color 300ms ease, color 300ms ease;
}
.rc-modal .rc-layout img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(120, 96, 70, .08), 0 8px 18px -12px rgba(120, 96, 70, .4);
}
.rc-modal .rc-layout[aria-checked="true"] { border-color: var(--rc-btn-ink); color: var(--rc-btn-ink); box-shadow: inset 0 0 0 1px var(--rc-btn-ink); }
.rc-print-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rc-print-note { margin: 14px 0 0; font-size: 13px; font-style: italic; color: var(--rc-label); }
.rc-print-msg { margin: 6px 0 0; font-size: 13px; color: var(--rc-ink); }
.rc-print-msg:empty { display: none; }
@media screen and (max-width: 767px) {
  .rc-layouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-modal-box.rc-print-box { max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px 18px 20px; }
}
@media (hover: hover) {
  .rc-modal .rc-layout:hover { color: var(--rc-sand); border-color: var(--rc-sand); }
}

/* ---------- the five printed layouts ----------
   The sheet (one A4 page) is built off-screen when a layout is picked, in mm and pt so it measures the same on screen
   as on paper: a recipe too long for one page gets the compact version. Only the sheet prints. Its padding is the white
   border; the notes lines (in the card's border colour) fill whatever space is left. */
.rc-sheet {
  position: absolute;
  left: -10000px;
  top: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  padding: 14mm 14mm 12mm;
  background: #fff;
  color: var(--rc-body);
  font-family: "Raleway", sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
@media print {
  body.rc-sheet-mode { padding: 0 !important; }
  body.rc-sheet-mode > :not(.rc-sheet) { display: none !important; }
  body.rc-sheet-mode .rc-sheet { position: static; visibility: visible; }
}
.rc-sheet > * { flex: none; }

/* title and the copy of the card and instructions, at print size */
.rc-sheet .page-title { position: relative; font-family: "Prata", Georgia, serif; font-size: 24pt !important; line-height: 1.15 !important; margin: 0 0 4mm !important; text-align: left !important; color: var(--rc-ink); }
.rc-sheet .rc-actions, .rc-sheet .rc-round, .rc-sheet .rc-picks, .rc-sheet .rc-track, .rc-sheet .rc-units-lbl, .rc-sheet .rc-hint,
.rc-sheet .rc-pctmode, .rc-sheet .rc-method-head .rc-btn, .rc-sheet .rc-tempsw, .rc-sheet .rc-timer-hint, .rc-sheet .rc-check { display: none !important; }
.rc-sheet .rc { margin: 0 0 5mm; }
.rc-sheet .rc-tabrow { margin: 0 2mm 0 5mm; gap: 4mm; }
.rc-sheet .rc .rc-tab { font-size: 8pt; letter-spacing: 1.5pt; line-height: 1.4; padding: 1.6mm 4mm 1.8mm; }
.rc-sheet .rc-times { flex-direction: row; align-items: baseline; font-size: 7.5pt; letter-spacing: 1pt; padding-bottom: 1.6mm; }
.rc-sheet .rc-times .rc-tt { display: inline; }
.rc-sheet .rc-times span + span::before { content: "·"; visibility: visible; margin: 0 2.2mm; }
.rc-sheet .rc-card { display: block; box-shadow: none; border-radius: 1.5mm 3mm 3mm 3mm; }
.rc-sheet .rc-controls { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1mm 2.5mm; padding: 3mm 5mm 2.5mm; border-right: 0; border-bottom: 1px dashed var(--rc-line); text-align: left; }
.rc-sheet .rc-controls > .rc-lbl:first-child, .rc-sheet .rc-dial, .rc-sheet .rc-people { text-align: left; justify-content: flex-start; }
.rc-sheet .rc .rc-lbl { font-size: 7.5pt; letter-spacing: 1.5pt; }
.rc-sheet .rc-dial { margin: 0; gap: 0; }
.rc-sheet .rc .rc-count, .rc-sheet .rc .rc-count.is-range { font-size: 18pt; min-width: 0; line-height: 1; }
.rc-sheet .rc-people { font-size: 10pt; margin: 0; padding-left: 0; }
.rc-sheet .rc-total { margin-left: auto; font-size: 9pt; line-height: 1.3; }
.rc-sheet .rc-total b { font-size: 12pt; }
.rc-sheet .rc-list { columns: 2; column-gap: 9mm; padding: 3mm 5mm 0; }
.rc-sheet .rc-sec { margin-bottom: 3mm; break-inside: auto; }
.rc-sheet .rc .rc-sec h3 { font-size: 11.5pt; margin: 0 0 1mm; padding-bottom: 0.8mm; break-after: avoid; }
.rc-sheet .rc .rc-ing { font-size: 9.5pt; line-height: 1.3; padding: 0.2mm 0; gap: 2mm; break-inside: avoid; }
.rc-sheet .rc .rc-ing[data-alt] { break-before: avoid; }
.rc-sheet .rc .rc-ing label { gap: 2mm; }
.rc-sheet .rc-qty small, .rc-sheet .rc-qty.rc-ar { font-size: 8.5pt; }
.rc-sheet .rc-note { font-size: 8.5pt; margin: 0 0 0 1.8mm; }
.rc-sheet .rc-lead { transform: translateY(-1mm); }
.rc-sheet .rc-alg .rc-name::before, .rc-sheet .rc-strip .rc-algname::before { width: 5px; height: 5px; margin: 0 6px 1px 1px; }
.rc-sheet .rc .rc-ing.is-done .rc-name, .rc-sheet .rc .rc-ing.is-done .rc-qty, .rc-sheet .rc .rc-ing.is-done .rc-qty small,
.rc-sheet .rc .rc-ing.is-done .rc-note, .rc-sheet .rc-method .rc-steps li.is-done > span { color: inherit; text-decoration: none; }
.rc-sheet .rc-strip { padding: 2.2mm 5mm 2.6mm; font-size: 8.5pt; line-height: 1.6; }
.rc-sheet .rc-method { margin: 0 0 3mm; column-count: 2; column-gap: 9mm; }
.rc-sheet .rc-method-head { display: block; column-span: all; margin: 0 0 2.5mm; padding-bottom: 1.5mm; }
.rc-sheet .rc-method .rc-method-title { font-size: 15pt; width: auto; }
.rc-sheet .rc-step-label { font-size: 9.5pt; line-height: 1.35; margin: 0; break-after: avoid; }
.rc-sheet .rc-method .rc-steps { margin: 0 0 2mm; }
.rc-sheet .rc-method .rc-steps li { font-size: 9.5pt; line-height: 1.35; gap: 1.8mm; break-inside: avoid; }
.rc-sheet .rc-method .rc-steps li::before { display: inline !important; }
.rc-sheet .rc-method .rc-timer { display: inline; padding: 0; gap: 0; font-size: inherit; box-shadow: none; }
.rc-sheet .rc-method .rc-timer::before { display: none; }
.rc-sheet .rc-tip { font-size: 9.5pt; line-height: 1.35; }

/* notes, small print, credit */
.rc-sheet .sh-notes { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; margin-top: 1mm; }
.rc-sheet .sh-notes-lbl { font-family: "Jost", sans-serif; font-size: 7.5pt; letter-spacing: 1.5pt; text-transform: uppercase; color: var(--rc-label); padding-bottom: 1mm; }
.rc-sheet .sh-lines { flex: 1; overflow: hidden; }
.rc-sheet .sh-lines i { display: block; height: 8mm; border-bottom: 0.25mm solid var(--rc-line); }
.rc-sheet .sh-eyebrow { font-family: "Jost", sans-serif; font-size: 7.5pt; letter-spacing: 1.6pt; text-transform: uppercase; color: var(--rc-sand); margin-bottom: 1.5mm; }
.rc-sheet .sh-row { display: flex; align-items: center; gap: 8mm; margin-bottom: 5mm; }
.rc-sheet .sh-row .sh-txt { flex: 1; }
.rc-sheet .sh-row .page-title, .rc-sheet .sh-hero .page-title { margin: 0 !important; }
.rc-sheet .sh-foot { font-family: "Jost", sans-serif; font-size: 7pt; letter-spacing: 1.5pt; text-transform: uppercase; color: var(--rc-label); text-align: center; padding-top: 2.5mm; }
/* 1 · classic and 2 · photo band: the quiet credit on the title's line */
.rc-sheet .sh-head .page-title::before,
.rc-sheet .sh-head .page-title::after { position: absolute; right: 0; line-height: 1; white-space: nowrap; font-weight: 400; color: var(--rc-label); }
.rc-sheet .sh-head .page-title::before { content: "Dew Arabia Recipes"; bottom: 4.8mm; font-family: "Jost", sans-serif; font-size: 7pt; letter-spacing: 1.6pt; text-transform: uppercase; }
.rc-sheet .sh-head .page-title::after { content: "dewarabia.com"; bottom: 1.3mm; font-family: "Raleway", sans-serif; font-size: 8pt; letter-spacing: 0.2pt; text-transform: none; }
.rc-sheet .sh-row .page-title::before, .rc-sheet .sh-row .page-title::after,
.rc-sheet .sh-hero .page-title::before, .rc-sheet .sh-hero .page-title::after { content: none !important; }

/* 2 · photo band under the title */
.rc-sheet .sh-band { height: 44mm; margin: -1mm 0 5mm; border-radius: 2mm; overflow: hidden; }
.rc-sheet .sh-band img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 3 · square photo beside the title */
.rc-sheet .sh-by { font-family: "Raleway", sans-serif; font-size: 9pt; color: var(--rc-label); margin-top: 2mm; }
.rc-sheet .sh-square { flex: none; width: 40mm; height: 40mm; border-radius: 2mm; object-fit: cover; }
/* 4 · full colour: paper background, cream card and notes, round photo */
.rc-sheet-full-colour { background: #F3F2EC; }
.rc-sheet-full-colour .sh-row { justify-content: space-between; margin-bottom: 4mm; }
.rc-sheet .sh-circle { flex: none; width: 34mm; height: 34mm; border-radius: 50%; object-fit: cover; }
.rc-sheet-full-colour .rc .rc-card, .rc-sheet-full-colour .rc .rc-tab { background: var(--rc-card); }
.rc-sheet-full-colour .sh-notes { background: var(--rc-card); border: 0.25mm solid var(--rc-line); border-radius: 2mm; padding: 3mm 5mm 2mm; }
.rc-sheet-full-colour .sh-foot { display: flex; align-items: center; justify-content: center; gap: 2.5mm; padding-top: 3mm; }
.rc-sheet-full-colour .sh-foot i { width: 2mm; height: 2mm; border: 0.3mm solid var(--rc-sand); transform: rotate(45deg); }
/* 5 · magazine: full-width photo with the title on it */
.rc-sheet-magazine { padding-top: 0; }
.rc-sheet .sh-hero { position: relative; height: 72mm; margin: 0 -14mm 6mm; overflow: hidden; }
.rc-sheet .sh-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc-sheet .sh-hero .sh-txt { position: absolute; left: 14mm; right: 14mm; bottom: 6mm; }
.rc-sheet .sh-hero .sh-eyebrow { color: #F3F2EC; }
.rc-sheet .sh-hero .page-title { font-size: 26pt !important; color: #fff; }
.rc-sheet-magazine .sh-foot { display: flex; justify-content: space-between; border-top: 0.3mm solid var(--rc-sand); margin-top: 2mm; padding-top: 2mm; }

/* a recipe too long for one page: smaller photo and slightly tighter text (set by js/recipe.js after measuring) */
.rc-sheet-compact .sh-band { height: 22mm; }
.rc-sheet-compact .sh-square { width: 28mm; height: 28mm; }
.rc-sheet-compact .sh-circle { width: 26mm; height: 26mm; }
.rc-sheet-compact .sh-hero { height: 46mm; }
.rc-sheet-compact .rc .rc-ing, .rc-sheet-compact .rc-method .rc-steps li,
.rc-sheet-compact .rc-step-label, .rc-sheet-compact .rc-tip { font-size: 9pt; line-height: 1.28; }
.rc-sheet-tight .sh-band { height: 16mm; }
.rc-sheet-tight .sh-square { width: 22mm; height: 22mm; }
.rc-sheet-tight .sh-circle { width: 20mm; height: 20mm; }
.rc-sheet-tight .sh-hero { height: 34mm; }
.rc-sheet-tight .rc .rc-ing, .rc-sheet-tight .rc-method .rc-steps li,
.rc-sheet-tight .rc-step-label, .rc-sheet-tight .rc-tip { font-size: 8.6pt; line-height: 1.24; }
.rc-sheet-tight .rc-sec { margin-bottom: 2mm; }
.rc-sheet-tight .rc-method .rc-steps { margin-bottom: 1.4mm; }
