.recipe-block {
	margin: 1.5rem 0;
}

.recipe-block.alignwide {
	max-width: min(1200px, 100%);
	margin-left: auto;
	margin-right: auto;
}

.recipe-block.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.recipe-block__header {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.recipe-block__header-main {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.recipe-block__media {
	flex: 0 0 240px;
	max-width: 320px;
}

.recipe-block__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	object-fit: cover;
}

.recipe-block__title {
	margin: 0;
	font-size: 1.75rem;
}

.recipe-block__summary p {
	margin: 0;
}

.recipe-block__meta {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.95rem;
}

.recipe-block__meta-item {
	margin: 0;
}

.recipe-block__unit-toggle {
	display: inline-flex;
	gap: 0.5rem;
}

.recipe-block__unit-button {
	border: 1px solid var(--wp--preset--color--primary);
	/* background: #f5f5f5; */
	color: #2c2c2c;
	padding: 0.35rem 0.75rem;
	border-radius: 0.2rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.recipe-block__unit-button.is-active {
	/* background: #0073aa; */
	color: #fff;
	/* border-color: #0073aa; */
	background: var(--wp--preset--color--primary);
}

.recipe-block__unit-button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.recipe-block__section {
	margin-bottom: 1.5rem;
}

.recipe-block__section:last-of-type {
	margin-bottom: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.recipe-block__section-title {
	margin: 0 0 0.75rem 0;
	font-size: 1.25rem;
}

.recipe-block__ingredients-group,
.recipe-block__instructions-group {
	margin: 1rem 0 0.5rem;
	font-weight: 600;
}

.recipe-block__ingredients-list,
.recipe-block__equipment-list {
	list-style: none;
	margin: 0 0 1rem s0;
	padding: 0;
}

.recipe-block__ingredient,
.recipe-block__equipment-item {
	margin-bottom: 0.5rem;
}

.recipe-block__ingredient:last-child,
.recipe-block__equipment-item:last-child {
	margin-bottom: 0;
}

.recipe-block__ingredient-toggle,
.recipe-block__equipment-toggle {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	/* padding: 0.35rem 0.5rem; */
	border: 1px solid transparent;
	background: transparent;
	color: inherit;
	border-radius: 4px;
	transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.recipe-block__ingredient-toggle.is-checked,
.recipe-block__equipment-toggle.is-checked {
	/* background: #ccc3; */
	/* border-color: #4caf50; */
	/* color: #2d572c; */
}

.recipe-block__ingredient-checkbox,
.recipe-block__equipment-checkbox {
	width: 2rem;
	height: 2rem;
	border: 2px solid currentColor;
	border-radius: 3px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background: transparent;
	color: inherit;
	cursor: pointer;
	padding: 0;
	transition: border 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.recipe-block__ingredient-checkbox:focus,
.recipe-block__equipment-checkbox:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa33;
}

.recipe-block__ingredient-toggle.is-checked .recipe-block__ingredient-checkbox::after,
.recipe-block__ingredient-checkbox.is-checked::after,
.recipe-block__equipment-toggle.is-checked .recipe-block__equipment-checkbox::after,
.recipe-block__equipment-checkbox.is-checked::after {
	content: '';
	position: absolute;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	border-radius: 2px;
}

.recipe-block__ingredient-text,
.recipe-block__equipment-text {
	flex: 1;
}



.recipe-block__instructions-list {
  counter-reset: instruction-counter;
  list-style: none;
  /* margin: 0 0 1rem 1.25rem; */
  padding: 0;
}

.recipe-block__instruction {
  counter-increment: instruction-counter;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.recipe-block__instruction p{ margin:0}
/* The toggle circle */
.recipe-block__instruction-toggle {
  border: 2px solid #333;
  /* background: #fff; */
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
  position: relative;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

/* Show the number using a pseudo-element */
.recipe-block__instruction-toggle::before {
  content: counter(instruction-counter);
  position: relative; /* so it sits normally */
  z-index: 1;
}

/* Hide number when checked */
.recipe-block__instruction-toggle.is-checked::before {
  content: '';
}

/* The checkbox container inside the toggle, for the tick */
.recipe-block__instruction-checkbox {
  width: 0.8rem;
  height: 0.8rem;
  position: relative;
  display: none; /* hidden by default */
}

/* Show checkbox only when checked */
.recipe-block__instruction-toggle.is-checked .recipe-block__instruction-checkbox {
  display: block;
}

/* Tick mark styling */
.recipe-block__instruction-toggle.is-checked .recipe-block__instruction-checkbox::after {
  content: '';
  position: absolute;
  left: 0.18rem;
  top: 0.1rem;
  width: 0.3rem;
  height: 0.55rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  color: #fff; /* tick color matches text color */
}

/* Checked toggle background & color */
.recipe-block__instruction-toggle.is-checked {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* Instruction text fade when checked */
.recipe-block__instruction.is-checked .recipe-block__instruction-text {
  opacity: 0.65;
}

.recipe-block__notes {
	margin: 0 0 1.5rem 0;
}

.recipe-block__note {
	margin-bottom: 1rem;
	/* padding: 0.5rem 0.75rem; */
	/* background: #f6f7f7; */
	border-radius: 4px;
}

.recipe-block__note:last-child {
	margin-bottom: 0;
}

.recipe-block__note-title {
	margin: 0 0 0.35rem 0;
	font-weight: 600;
}

.recipe-block__note-text p {
	margin: 0 0 0.5rem 0;
}

.recipe-block__note-text p:last-child {
	margin-bottom: 0;
}





/* .recipe-block--metric .recipe-block__unit-button[data-unit="metric"],
.recipe-block--imperial .recipe-block__unit-button[data-unit="imperial"] {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
} */

.recipe-block__notice {
	margin: 0;
	font-style: italic;
}

.recipe-block.recipe-block--notice {
	border-style: dashed;
	color: #9b2d2d;
	background: #fff7f7;
}

@media (max-width: 640px) {
	.recipe-block__media {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

.recipe-block__video {
	overflow: hidden;
	margin-top: 1rem;
}

.recipe-block__video iframe,
.recipe-block__video video {
	width: 100%;
	height: auto;
}

.recipe-block-image {
	margin: 1.5rem 0;
	text-align: center;
}

.recipe-block-image.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.recipe-block-image__link,
.recipe-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.recipe-block h1{font-size: 3rem;}
.recipe-block h2{font-size: 3rem;}
.recipe-block h3{font-size: 2rem;}
.recipe-block h4{font-size: 1.5rem;}
.recipe-block h5{font-size: 1.3rem;}
