/* --------------------------------------------------------------------------------------------------------------------
/* --------------------------------------------------------------------------------------------------------------------
/* --------------------------------------------------------------------------------------------------------------------
/* --------------------------------------------------------------------------------------------------------------------
/* ========================
   Meal Plan Post - Base Layout
======================== */
.hello-box-wrapper{
    margin: 1rem;
}
.hello-box h2 {
  text-align: center;
  font-size: 3.0rem;
  margin-bottom: 1rem;

}
.hello-box p {
  text-align: center;
  font-size: 1.8rem;
}

.mealplan-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2rem;
  line-height: 1.6;
  color: #0C0E1D;
}

.grocery-list,
.recipes {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem;
  line-height: 1.6;
  color: #0C0E1D;
}

.mealplan-content {
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.mealplan-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.mealplan-content ul {
  list-style-position: inside;
  padding: 0;
  margin: 0 auto;
  display: table;
}

.mealplan-content li {
  margin-bottom: 0.4rem;
  font-size: 2rem;
}


.plan-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #fff;
}

.plan-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 1.5rem;
  text-align: center;
  border: 3px solid #1D725E;

}

#monday, #tuesday, #wednesday, #thursday, #friday {
  scroll-margin-top: 80px;
}

.plan-nav a {
  margin: 0 0.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #1D725E;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease-in-out;
}

.plan-nav a:hover {
  border-color: #1D725E;
}

#back-to-top.hidden {
  display: none;
}

#back-to-top.show {
  display: inline-block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ========================
   Weekly Recipe Summary
======================== */
.weekday-row {
  display: flex;
  align-items: flex-start;
  font-size: 1.8rem;
  background: #ffffff;
  line-height: 1.4;
  text-decoration: none;
  color: inherit;
  padding: 0.4rem;
  transition: background 0.2s ease;
  border-bottom: 1px double #B83100;

}

.weekday-list div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.weekday-pill {
  display: inline-block;
  padding: 0.2em 0.8em;
  margin-right: 0.5em;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  font-size: 0.9em;
  vertical-align: middle;
}

.weekday-pill.day-mo { background-color: #B83100; color: #ffffff !important; }
.weekday-pill.day-tu { background-color: #4682B4; color: #ffffff !important; }
.weekday-pill.day-we { background-color: #1D725E; color: #ffffff !important; }
.weekday-pill.day-th { background-color: #8A2BE2; color: #ffffff !important; }
.weekday-pill.day-fr { background-color: #eaaa05; color: #ffffff !important; }

.weekday-pill:hover {
  filter: brightness(1.1);
}

/* ========================
   Grocery List Styling
======================== */
.grocery-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.grocery-header h2 {
  font-size: 4rem;
  margin: 0;
  text-align: center;
}

.grocery-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: #FFF;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 1px 1px;
  border-radius: 10px;
}

.grocery-toggle::after {
  content: "➖";
}

.grocery-toggle.collapsed::after {
  content: "➕";
}

.grocery-list.collapsed {
  display: none;
}

.category-heading {
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
}

.category-heading::after {
  content: "➖";
  position: absolute;
  right: 0;
  top: 0;
}

.category-heading.collapsed::after {
  content: "➕";
  position: absolute;
  right: 0;
  top: 0;
}

#grocery-wrapper {
  scroll-margin-top: 80px;
}
.grocery-wrapper {
  border-radius: 10px;
  background: #B83100;
  padding: 2rem 2rem;
  width: 100%;
  color: #ffffff;
  scroll-margin-top: 120px; /* adjust for sticky nav height */
}
.grocery-wrapper h2 {
  font-size: 4rem;
}

#grocery-list {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 3rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  margin: 0 auto 1rem auto;
  border-top: 2px solid #eee;
  box-sizing: border-box;
  line-height: 1.6;
  color: #0C0E1D;
  text-align: left;
}

.grocery-list h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.grocery-list .category-heading {
  font-weight: 700;
  font-size: 2rem;
  margin: 2rem 0 0.5rem;
  text-transform: uppercase;
  color: #0C0E1D;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.25rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 0.5rem 0;
}


.grocery-list ul {
  list-style-position: inside;
  padding: 0;
  margin: 1rem auto;
}

.grocery-list li {
  margin: 0.5em 0;
  padding: 0.25em 0;
  border-bottom: 1px dotted #ddd;
}

.grocery-list li:hover {
  background-color: #f9f9f9;
}

/* ========================
   Day Usage Colors
======================== */

.day {
  font-weight: bold;
  padding-left: 0.25em;
}

.day-mo { color: #B83100 !important;}   /* Monday */
.day-tu { color: #4682B4 !important;}   /* Tuesday */
.day-we { color: #1D725E !important;}   /* Wednesday */
.day-th { color: #8A2BE2 !important;}   /* Thursday */
.day-fr { color: #eaaa05 !important;}    /* Friday */

/* ========================
   Recipe Section Styling
======================== */

.recipe-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.recipe-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  color: #673ab7;
}

.recipe-toggle::after {
  content: "➖";
}

.recipe-toggle.collapsed::after {
  content: "➕";
}

.recipe-body.collapsed {
  display: none;
}
@media (max-width: 768px) {
  .recipe-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
  }

  .recipe-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    transform: none;
    font-size: 2.5rem;
    line-height: 1;
  }

  .recipe-header h3 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 1.5rem 0 0.5rem;
  }
}

.section-toggle-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 2px solid #1D725E;
  border-radius: 6px;
  padding: 1rem;

  background: #FFF;
  min-height: 100%; /* Ensures consistent grid height */
}

.section-toggle-wrapper.collapsed {
  min-height: 100px; /* Maintains structure when collapsed */
}

.section-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  background: none;
  border: none;
  color: #1D725E;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ccc;
  position: relative;
  margin-bottom: 1rem; /* 👈 prevents text from crowding */
}

.section-toggle::after {
  content: "➖";
  font-size: 1.8rem;
  position: absolute;
  right: 0;
}

.section-toggle.collapsed::after {
  content: "➕";
}

.section-content.collapsed {
  display: none;
}


.recipes {
  border-radius: 10px;
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background-color: #1D725E;
  border-top: 2px solid #eee;
  scroll-margin-top: 120px;
  color: #FFFFFF;
  line-height: 1.6;
}
#recipes {
  scroll-margin-top: 80px;
}
.recipes h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.recipe-day {
  margin: 3rem 0;
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: #0C0E1D;
}

.recipe-day h3 {
  max-width: 40ch;
  margin: 0 auto 1rem;
  text-align: center;
  line-height: 1;
  font-size: 2.5rem;
}

/* Base weekday pill style */
.recipe-day .weekday {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 600;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #fff !important;
  background-color: #1D725E; /* fallback default */
}

/* Day-specific colors */
.recipe-day .day-mo { background-color: #B83100; }
.recipe-day .day-tu { background-color: #4682B4; }
.recipe-day .day-we { background-color: #1D725E; }
.recipe-day .day-th { background-color: #8A2BE2; }
.recipe-day .day-fr { background-color: #eaaa05; }


.recipe-body {
  padding-top: 1rem;

}

.recipe-body h4 {
  font-size: 1.75rem !important;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: #0C0E1D;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

.ingredient-list li,
.tips-list li,
.instructions li {
  margin: 0.5rem 0;
}

.recipes ul.ingredient-list,
.recipes ul.tips-list {
  list-style-type: disc !important;
  list-style-position: outside !important;
  padding-left: 2rem !important;
  margin-bottom: 2rem;
}

.recipes ol.instructions {
  list-style-type: decimal !important;
  list-style-position: outside !important;
  padding-left: 2rem !important;
  margin-bottom: 2rem;
}
.recipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.click-to-strike {
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.click-to-strike.struck {
  text-decoration: line-through;
  opacity: 0.6;
}


/* ========================
   Prep & Cook Time Styling
======================== */

.prep-cook-time {
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 1rem;
  color: #B83100;
}

/* ========================
   Optional Image Block
======================== */

.recipe-image {
  flex: 1 1 300px;
  max-width: 100%;
  margin-bottom: 1rem;
  text-align: center;
}

.recipe-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ingredients-column,
.tips-column {
  flex: 1 1 0; /* grow, shrink, base width */
  min-width: 300px;
  max-width: 50%;
}

.ingredients,
.tips {
  flex: 1 1 300px;
}

.ingredients h4,
.tips h4 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25rem;
  text-transform: uppercase;
}

/* ========================
   Grocery List Checks and Lines
======================== */
.grocery-check {
  position: relative;
  padding-left: 2em;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.75em;
  display: flex;
  align-items: center;
  font-size: 1.2em;
  line-height: 1.4;
}

.grocery-check::before {
  content: "☐";
  position: absolute;
  left: 0;
  font-size: 1.4em;
  top: 50%;
  transform: translateY(-50%);
  color: #0C0E1D;
}
.grocery-check.checked::before {
  content: "☑";
  color: #1D725E;
}

.grocery-check.checked .grocery-text {
  text-decoration: line-through;
  opacity: 0.8;
  background-color: #f0f0f0;
}
.used-summary-wrapper {
  display: inline-block;
  position: relative;
  margin-left: 0.75rem;
}

.used-summary-toggle {
  background: #FFF;
  color: #1D725E !important;
  font-size: 1.4rem;
  padding: 3px 8px;
  border: 1px solid #1D725E;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}

.used-summary-popup {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  right: auto;
  background: white;
  border: 1px solid #ccc;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  font-size: 1.3rem;
  z-index: 15;

  white-space: normal;
  max-width: 90vw;
  min-width: max-content;
  overflow-wrap: break-word;
}

.used-summary-wrapper.active .used-summary-popup {
  display: block;
}

.used-meal {
  margin: 3px 0;
}

.used-meal .day {
  font-weight: 600;
  margin-right: 4px;
  padding: 2px 5px;
  border-radius: 6px;
  color: white;
  font-size: 1.4rem;
}

.used-meal a {
  text-decoration: none;
  color: #0c0e1d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.used-meal a:hover {
  text-decoration: underline;
}
.used-summary-toggle a {
    color: #1D725E !important;
}
/* ========================
   Servings boxes
======================== */
.servings-note {
  font-size: 1.2rem !important;
  color: #0C0E1D;
  text-align: center;
  margin-top: 1rem !important;
  margin-bottom: 0px !important;
}

.servings-selector {
  scroll-margin-top: 100px;
  font-size: 2.2rem;
  text-align: center;
  background: #f3f8f7;
  border: 3px solid #1D725E;
  border-radius: 12px;
  padding: 2.5rem;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 2rem;
  max-width: 700px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#servings {
  scroll-margin-top: 80px;
}

.servings-selector p {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  color: #0C0E1D;
}

.servings-select {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.servings-select button {
  padding: 1rem 2rem;
  border: 2px solid #1D725E;
  background: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.8rem;
  min-width: 50px;
  transition: background 0.2s, border-color 0.2s, transform 0.1s ease;
}

.servings-select button:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.servings-select button.active {
  background: #B83100;
  color: #fff;
  border-color: #B83100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ================================================ *//* ================================================ */
/* ================================================ *//* ================================================ */
/* ================================================ *//* ================================================ */
/* ================================================ *//* ================================================ */
/* ================================================ *//* ================================================ */
/* ========================
   Responsive Tweaks for Mobile Phone
======================== */
/* Responsive: Stack image on small screens */
@media (max-width: 768px) {
  .recipe-image {
    order: -1; /* Put image above ingredients and tips */
    margin-bottom: 1.5rem;
  }
}
/* ================================================ */
@media (min-width: 768px) {
  .recipe-grid {
    flex-wrap: nowrap;
  }
}
/* ================================================ */
@media (max-width: 768px) {
  .mealplan-content,
  .recipes {
    padding: 2rem 1rem;
  }
@media (max-width: 768px) {
  #grocery-list.grocery-list {
    padding: 2rem 1rem !important;
  }
}
  .ingredient-list,
  .instructions,
  .tips-list {
    max-width: 100%;
  }

  .recipe-grid {
    flex-direction: column;
    gap: 2rem;
  }
}
/* ================================================ */
@media screen and (max-width: 768px) {
  .ingredients-column,
  .tips-column {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
/* ================================================ */
  .section-toggle-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .plan-nav-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    width: 100%;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #ccc;
    padding: 0.5rem;
  }

  .plan-nav {
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    max-width: 100%;
  }

  .plan-nav a {
    display: inline-block;
  }

  body {
    padding-bottom: 4rem; /* Make room for fixed nav so it doesn’t cover content */
  }
}


/* ================================================ */

@media (max-width: 768px) {
  .gh-content .mealplan-content {
    background: #ffffff;
    border-radius: 12px;
  }
  .weekday-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.3;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #f8d9d0;
    border: 2.5px solid #B83100;
    font-weight: bold;
    border-radius: 8px;
  }
  .mealplan-content h2{
    color: #0C0E1D;
  }
  .mealplan-content{
      padding-bottom: 0;
    }

  .weekday-pill {
    font-size: 1.8rem;
    margin: 0 0 0.35rem 0;
    border: 0.5px solid #B83100;
  }
  .weekday-pill.day-mo { background-color: #FFFFFF; color: #B83100 !important; }
  .weekday-pill.day-tu { background-color: #FFFFFF; color: #4682B4 !important; }
  .weekday-pill.day-we { background-color: #FFFFFF; color: #1D725E !important; }
  .weekday-pill.day-th { background-color: #FFFFFF; color: #8A2BE2 !important; }
  .weekday-pill.day-fr { background-color: #FFFFFF; color: #eaaa05 !important; }
}

/* ================================================ */
@media (max-width: 768px) {
  .servings-select button {
    padding: 0.8rem 1.5rem;
    font-size: 1.6rem;
    min-width: 48px;
  }

  .servings-selector {
    padding: 2rem 1rem;
    margin-top: 2rem !important;
  }
}

/* ================================================ */
@media (max-width: 768px) {
  .recipes h2,
  .grocery-list h2,
  .mealplan-content h2 {
    font-size: 3rem;
  }
  .grocery-wrapper h2, .recipes h2 {
    color: #ffffff
  }
  .recipe-day h3 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .prep-cook-time {
    font-size: 1.6rem;
  }
}

/* ================================================ */
@media (max-width: 768px) {
  .grocery-check {
    font-size: 1.1em;
    padding-left: 2.5em;
  }

  .grocery-check::before {
    font-size: 1.3em;
  }
}
/* ================================================ */
@media (max-width: 768px) {
  #monday, #tuesday, #wednesday, #thursday, #friday {
    scroll-margin-top: 90px;
  }
}

/* ================================================ */
@media (max-width: 768px) {
    #servings, #grocery-wrapper, #recipes {
  scroll-margin-top: 20px;
    }
}

/* ================================================ */
div[style*="display:none"] {
  display: block !important;
}

/* ================================================ */
@media (max-width: 768px) {

    .used-summary-toggle {
        font-size: 1.2rem;
        padding: 3px 8px;
        border-radius: 999px;
        cursor: pointer;
        font-weight: 500;
    }

}
@media (max-width: 768px) {
  .used-summary-popup {
    bottom: 120% !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;

    max-width: 90vw;
    min-width: 200px;
    white-space: normal;
  }
}











