/* Recipe detail panel: ingredients, instructions and ratings. */

/* detail panel */
.detail-phase-dots { display: flex; gap: 6px; margin-bottom: 6px; }
.detail-phase-dots span {
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: #fff;
}
.detail-section { margin-top: 22px; }
.detail-section h4 {
  font-family: var(--serif); font-size: 15px; font-weight: 600; margin: 0 0 8px;
  color: var(--ink-soft);
}
.ingredient-list { margin: 0; padding-left: 20px; }
.ingredient-list li { margin-bottom: 4px; }
.instructions { white-space: pre-wrap; line-height: 1.55; }
.meta-line { font-size: 13px; color: var(--ink-faint); }

.rating-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.rating-item .rhead { display: flex; justify-content: space-between; font-size: 13.5px; }
.rating-item .rhead .who { font-weight: 600; }
.rating-item .tol {
  display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  margin-left: 6px; background: var(--surface-sunk); color: var(--ink-soft);
}
.rating-item .comment { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

.star-picker { display: flex; gap: 4px; }
.star-picker button {
  border: none; background: transparent; font-size: 26px; cursor: pointer; color: var(--line); padding: 0;
  line-height: 1;
}
.star-picker button[data-on="true"] { color: var(--phase-remission); }

.tol-picker { display: flex; gap: 8px; }
.tol-btn {
  flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px; font-size: 13px;
  background: var(--surface); cursor: pointer; font-weight: 600; color: var(--ink-soft);
}
.tol-btn[data-on="true"] { border-color: var(--ink); color: var(--ink); background: var(--surface-sunk); }

.helper-banner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; font-size: 13.5px; color: var(--ink-soft); margin-top: 16px;
}

/* Recipe photo at the top of the detail panel, with its add/change button. */
.detail-photo { margin-bottom: 16px; }
.detail-photo img {
  display: block; width: 100%;
  max-height: 340px; object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-sunk);
  margin-bottom: 10px;
}
.detail-photo .photo-loading,
.detail-photo .photo-status { font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }

/* "Delete recipe": last, set apart, and red so it isn't tapped by accident. */
.detail-actions {
  margin-top: 28px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.detail-delete { margin-top: 8px; }
.detail-delete-btn { color: var(--danger); }
