.rc-recipe {
  margin-bottom: 2.5em;
  background: repeating-linear-gradient(-45deg, var(--base-2), var(--base-2) 6px, transparent 6px, transparent 12px);
  border: 1px solid var(--contrast-4);
  padding: 12px;
}

.rc-recipe__card {
  background: var(--base-3);
  border: 1px solid var(--contrast-4);
  padding: 24px;
  position: relative;
}

.rc-recipe__header {
  margin-bottom: 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.rc-recipe__header-content {
  flex: 1;
  min-width: 0;
}

.rc-recipe__title {
  margin: 0 0 8px;
  color: var(--contrast);
  font-weight: 600;
}

.rc-recipe__desc {
  margin: 0;
  color: #010101;
  font-size: 1rem;
}

.rc-recipe__media {
  margin: 0;
  flex: 0 0 auto;
}

.rc-recipe__media img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--base);
  margin-top: 0;
}

.rc-recipe__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 24px;
  color: var(--contrast);
  font-size: 0.9rem;
  border: 1px dashed var(--contrast-3);
  padding: 12px 16px;
  margin: 20px 0;
}

.rc-recipe__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rc-recipe__meta-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
}

.rc-recipe__meta-item strong {
  font-weight: 600;
  margin-right: 2px;
}

.rc-recipe__body {
  display: block;
}

.rc-recipe__ingredients h3,
.rc-recipe__instructions h3,
.rc-recipe__notes h3 {
  margin: 0 0 20px;
  color: var(--contrast);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ── Recipe section heading icons ── */
.rc-recipe__ingredients h3,
.rc-recipe__instructions h3,
.rc-recipe__notes h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-recipe__ingredients h3 svg,
.rc-recipe__instructions h3 svg,
.rc-recipe__notes h3 svg,
.rc-nutrition__title svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--accent);
  border: 1px dashed var(--contrast-3);
  padding-right: 2px;
}

.rc-recipe__ingredients ul,
.rc-recipe__instructions ol,
.rc-recipe__notes ol {
  margin: 0;
  padding-left: 0;
  color: var(--contrast);
}

.rc-recipe__ingredients li,
.rc-recipe__instructions li,
.rc-recipe__notes li {
  margin: 0 0 15px;
  line-height: 1.5;
}

.rc-recipe__ingredients li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.rc-recipe__ingredients li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1px solid var(--contrast-2);
  background: var(--base-2);
  flex: 0 0 16px;
}

.rc-recipe__instructions ol,
.rc-recipe__notes ol {
  counter-reset: rc-steps;
}

.rc-recipe__notes ol {
  list-style: none;
}

.rc-recipe__instructions li,
.rc-recipe__notes li {
  list-style: none !important;
  position: relative;
  padding-left: 36px;
}

.rc-recipe__instructions li::before,
.rc-recipe__notes li::before {
  counter-increment: rc-steps;
  content: counter(rc-steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--contrast);
  color: var(--base);
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rc-recipe__divider {
  margin-top: 30px;
  margin-bottom: 30px;
  height: 1px;
  border: 0;
  border-color: var(--contrast-4);
  background-color: var(--contrast-4);
}

.rc-recipe__actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rc-recipe__print {
  white-space: nowrap;
}

.rc-recipe__rate {
  background: #b45e36;
  color: #fff;
}

.rc-recipe__actions .rc-button {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .02em;
  min-height: 44px;
  border-radius: 12px;
}

.rc-comment-rating {
  margin: 0 0 14px;
}

.rc-comment-rating__label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--contrast);
}

.rc-comment-rating__stars {
  display: inline-flex;
  gap: 4px;
  font-size: 1.6rem;
  color: var(--contrast-4);
  direction: rtl;
}

.rc-comment-rating__stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rc-comment-rating__stars label {
  cursor: pointer;
  line-height: 1;
}

.rc-comment-rating__stars label:hover,
.rc-comment-rating__stars label:hover ~ label {
  color: var(--accent);
}

.rc-comment-rating__stars input:checked ~ label {
  color: var(--accent);
}

.rc-comment-rating__display {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.6rem;
}

.rc-recipe-rating {
  margin-top: 12px;
}

.rc-recipe-rating .rc-comment-rating__stars {
  font-size: 1.6rem;
}

.rc-recipe-rating__row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rc-recipe-rating__summary {
  font-size: 0.95rem;
  color: var(--contrast-2);
}

.rc-nutrition {
  margin-bottom: 2.5em;
  background: repeating-linear-gradient(-45deg, var(--base-2), var(--base-2) 6px, transparent 6px, transparent 12px);
  border: 1px solid var(--contrast-4);
  padding: 12px;
}

.rc-nutrition__card {
  background: var(--base-3);
  border: 1px solid var(--contrast-4);
  padding: 20px;
}

.rc-nutrition__title {
  display: flex;
	align-items: center;
	gap: 10px;
  margin: 0 0 20px;
  color: var(--contrast);
  font-size: 1.4rem;
  font-weight: 600;
}

.rc-nutrition__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-nutrition__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--contrast-4);
  color: var(--contrast);
}

.rc-nutrition__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rc-nutrition__label {
  font-weight: 500;
}

.rc-recipe__btn-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.rc-recipe__print {
  background: var(--base-2);
  color: var(--contrast);
  border: 1px solid var(--contrast-4);
}

.rc-recipe__print:hover {
  background: var(--base-3);
}

.rc-recipe__save {
  background: #e60023;
  color: var(--base) !important;
  border: 1px solid #e60023;
}

.rc-recipe__save:hover {
  background: var(--contrast);
  border-color: var(--contrast);
}

@media (max-width: 700px) {
  .rc-recipe__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .rc-recipe__media {
    flex: 0 0 auto;
  }
  .rc-recipe__media img {
    width: 140px;
    height: 140px;
  }
}
