/* ===== Recipe Page CSS ===== */

body.recipe-page {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.recipe-page main,
body.recipe-page > header,
body.recipe-page > .back-button-container {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4vw;
  padding-right: 4vw;
}

body.recipe-page > header {
  padding-top: 3rem;
}

/* PAGE TITLE BLOCK */
body.recipe-page .page-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.25rem;
  margin: 0;
  text-align: center;
  color: var(--color-brand-red);
  letter-spacing: normal;
  padding: 0;
}

/* Override generic section styles from main.css */
body.recipe-page section {
  padding-top: 0;
  padding-bottom: 0;
  opacity: 1;
  transform: none;
  animation: none;
  display: block;
  text-align: center;
}

.recipe-subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  font-size: 1.1rem;
  color: var(--color-text-editorial);
  margin: 0.25rem 0 0.5rem 0;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.recipe-head-note {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  font-size: 1.1rem;
  color: var(--color-text-editorial);
  margin: 0.25rem 0 0.5rem 0;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* META LINE */
.recipe-meta {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-text-meta);
  text-align: center;
  margin: 0 0 2rem 0;
}

/* IMAGE SECTION */
.recipe-image-section {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
}

.recipe-image-container {
  max-width: 900px;
  margin: 1rem auto 3rem auto;
  text-align: center;
  position: relative;
}

.recipe-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block;
}

/* CALLOUT BOX STYLING (editorial-style beside hero image) */
.image-callout-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
}

/* === Personal Note Box (Callout Caption) === */
.personal-note {
  box-sizing: content-box;
  position: absolute;
  bottom: 0;
  left: -110px;
  background-color: var(--color-bg-light);
  border: 1px solid #000;
  padding: 0.6rem;
  font-family: var(--font-sans);
  color: var(--color-text-callout);
  width: 65px;
  min-height: 224px;
  overflow-wrap: break-word;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.personal-note p {
  font-style: normal;
  font-size: 0.7rem;
  margin: 0;
  padding: 0;
  color: var(--color-text-callout);
}

/* BACK TO RECIPES BUTTON DIVIDER LINE */
.back-button-divider {
  height: 1px;
  background-color: var(--color-border-medium);
  width: 90%;
  max-width: 600px;
  margin: 2.3rem auto 5rem auto;
  opacity: 0.5;
}

/* RECIPE CONTENT WRAPPER */
.recipe-content-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto 3rem auto;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 0 2rem;
}

/* MAIN RECIPE CONTENT */
.recipe-content {
  flex: 1 1 500px;
  min-width: 300px;
  text-align: left;
}

/* SIDEBAR */
.recipe-extras {
  flex: 0 0 340px;
  min-width: 340px;
  font-family: var(--font-sans);
  color: var(--color-text-editorial);
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.07);
  text-align: center;
}

/* SIDEBAR HEADINGS (Michele's Notes, Tips & Tricks) */
.recipe-extras h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-brand-red);
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  border-bottom: none;
  text-decoration: none;
}

.recipe-extras h3::before,
.recipe-extras h3::after {
  content: none;
  display: none;
  border: none;
  background: none;
  box-shadow: none;
  text-decoration: none;
}

/* SIDEBAR TEXT */
.extra-note p {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

/* MAIN RECIPE HEADINGS (Ingredients & Instructions) */
.ingredients-block h2,
.instructions-block h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-brand-red);
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* LIST STYLES */
.ingredients-block,
.instructions-block {
  padding-left: 2rem;
  padding-right: 2rem;
}

.ingredients-block ul,
.instructions-block ol {
  list-style-position: outside;
  padding-left: 1.5rem;
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: left;
}

.ingredients-block ul li,
.instructions-block ol li {
  margin-bottom: 0.5rem;
  text-align: left;
}

/* Extra margin to separate instructions from ingredients */
.instructions-block {
  margin-top: 7rem;
}

/* BACK TO RECIPES BUTTON AT BOTTOM */
.back-button-container {
  max-width: 700px;
  margin: 2rem auto 3rem auto;
  text-align: center;
}

.back-button {
  display: inline-block;
  background-color: transparent;
  border: 2px solid var(--color-brand-red);
  color: var(--color-brand-red);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: background-color var(--transition-default), color var(--transition-default);
}

.back-button:hover,
.back-button:focus {
  background-color: var(--color-brand-red);
  color: white;
  outline: none;
}

/* FOOTER */
.site-footer {
  margin-top: 4rem;
}

/* Sidebar note 1 title adjustments */
.recipe-extras .note-1-title {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.note-1-title {
  white-space: nowrap;
}

.recipe-extras .heading-wrapper {
  display: flex;
  justify-content: center;
}
