/* Public recipe pages share the cookbook's real cover layout, without exposing
   the purchased ingredients or method. The short line drawings are static. */
body[data-view="recipe"] #main,
body[data-view="cook"] #main { max-height: none; overflow: visible; }
body[data-view="recipe"] .preview-cutoff,
body[data-view="cook"] .preview-cutoff,
body[data-view="recipe"]::after,
body[data-view="cook"]::after { display: none; }

.recipe-sneak-peek { padding-bottom: 28px; }
.recipe-sneak-peek .recipe-cover { margin-bottom: 0; }
.recipe-sneak-peek .recipe-title-heading { min-width: 0; }
.recipe-sneak-peek .recipe-title-sheet h1 { overflow-wrap: break-word; }
.recipe-sneak-peek .recipe-description { max-width: 53ch; }
.recipe-sneak-peek .recipe-image { min-width: 0; height: 270px; max-height: none; padding: 0; }
.recipe-sneak-peek .recipe-image img { inset: 0; width: 100% !important; max-width: 100%; height: 100%; max-height: none; object-fit: cover; }
.recipe-sneak-peek .button-row { margin-top: 14px; gap: 10px 16px; }
.recipe-sneak-peek .button[data-action="menu-toggle"] {
  min-height: 46px;
  background: var(--action);
  color: #fff;
  border-color: transparent;
}
.recipe-sneak-peek .button[data-action="menu-toggle"]:hover { background: var(--action-dark); }
.recipe-sneak-peek .button[data-action="menu-toggle"][aria-pressed="true"] {
  background: #eaf3fa;
  color: #244967;
}
.recipe-sneak-peek .button[data-action="menu-toggle"][aria-pressed="true"]:hover { background: #dbeaf5; }
.sneak-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: #315e85;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.sneak-menu-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sneak-menu-link svg { width: 17px; height: 17px; transform: rotate(180deg); }
.sneak-recipe-content { margin-top: 24px; }
.sneak-layout-hint {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 32px;
  height: 184px;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  mask-image: linear-gradient(#000 0%, #000 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 0%, #000 45%, transparent 100%);
}
.sneak-layout-hint h2 {
  margin: 0 0 13px;
  font-family: Figtree, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.015em;
  color: #352e29;
}
.sneak-ingredients { padding: 0 18px 16px; background: #fff; border-radius: 12px; overflow: hidden; }
.sneak-ingredients h2 { margin-inline: -18px; padding: 13px 18px; color: #fff; background: var(--reader-cook, #a94d24); }
.sneak-directions { padding: 13px 0 0; }
.sneak-check-line,
.sneak-step-line { display: flex; align-items: center; gap: 12px; min-height: 37px; }
.sneak-check-line i { width: 20px; height: 20px; flex: 0 0 20px; border: 1.5px solid #c1b2a7; border-radius: 5px; }
.sneak-check-line span,
.sneak-step-line span { width: 76%; height: 8px; border-radius: 2px; background: #e0d7cf; }
.sneak-check-line:nth-child(3) span { width: 58%; }
.sneak-check-line:nth-child(4) span { width: 67%; }
.sneak-step-line i { width: 24px; flex: 0 0 24px; color: #a94d24; font-style: normal; font-size: .85rem; font-weight: 650; }
.sneak-step-line span { width: 86%; background: #ddd9d3; }
.sneak-step-line:nth-child(3) span { width: 69%; }
.sneak-included-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: -4px auto 0;
  color: #536a7c;
  font-size: .86rem;
  line-height: 1.5;
  text-align: center;
}
.sneak-included-note svg { width: 20px; height: 20px; }

@media (max-width: 700px) {
  .recipe-sneak-peek { padding-bottom: 24px; }
  .recipe-sneak-peek .recipe-topline { padding-block: 6px; }
  .recipe-sneak-peek .recipe-cover { padding: 8px; }
  .recipe-sneak-peek .recipe-cover-grid { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .recipe-sneak-peek .recipe-image { width: 100%; height: clamp(155px, 50vw, 240px); min-height: 0; padding: 0; align-self: auto; grid-area: auto; }
  .recipe-sneak-peek .recipe-image img { position: static; min-height: 0; border-radius: 8px; }
  .recipe-sneak-peek .recipe-title-sheet { display: block; padding: 17px 9px 10px; }
  .recipe-sneak-peek .recipe-title-sheet h1 { font-size: clamp(1.45rem, 5.8vw, 1.85rem); line-height: 1.18; margin: 0; }
  .recipe-sneak-peek .recipe-chapter { margin: 8px 0 12px; padding-bottom: 10px; }
  .recipe-sneak-peek .recipe-description { font-size: .91rem; line-height: 1.5; margin: 0 0 13px; }
  .recipe-sneak-peek .recipe-title-sheet .yield { font-size: .86rem; margin: 0; }
  .recipe-sneak-peek .button-row { gap: 8px 12px; margin-top: 14px; }
  .recipe-sneak-peek .button[data-action="menu-toggle"] { font-size: .85rem; padding-inline: 13px; }
  .sneak-menu-link { font-size: .8rem; }
  .sneak-recipe-content { margin-top: 20px; }
  .sneak-layout-hint { height: 145px; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sneak-layout-hint h2 { font-size: .91rem; }
  .sneak-ingredients { padding-inline: 12px; }
  .sneak-ingredients h2 { margin-inline: -12px; padding-inline: 12px; }
  .sneak-check-line, .sneak-step-line { min-height: 33px; gap: 8px; }
  .sneak-check-line i { width: 17px; height: 17px; flex-basis: 17px; }
  .sneak-included-note { font-size: .8rem; gap: 7px; }
}

@media print {
  .sneak-layout-hint { display: none; }
  .sneak-included-note { margin-top: 20px; }
}
