@media (max-width: 768px) {
/* ============================================================
   LUNCHBOX.KIDS — RECIPE DETAIL MOBILE
   Loads AFTER home-mobile.css. All page-specific styles.
   ============================================================ */

/* ====== BACK LINK ====== */
.rdm-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--peri-dark);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  margin-bottom: 24px;
  -webkit-tap-highlight-color: transparent;
}
.rdm-back:active { opacity: .6; }
.rdm-back svg { width: 14px; height: 14px; }

/* ====== HERO ====== */
.rdm-hero {
  padding-bottom: 40px;
}

/* Hero photo — full-width, 18px radius, matches about-photo treatment */
.rdm-photo-wrap {
  position: relative;
  margin-bottom: 28px;
}
.rdm-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(18,52,87,.45);
}
.rdm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title */
.rdm-hero .m-h1 {
  font-style: italic;
  margin-bottom: 0;
}

/* Facts strip — inline dot-separated meta row, matches desktop */
.rdm-facts-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 14px;
}
.rdm-fp-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.rdm-fp-sep {
  color: var(--rule-strong, rgba(18, 52, 87, 0.25));
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1;
}
.rdm-fp-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.rdm-fp-val {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.15;
  color: var(--peri-dark);
  letter-spacing: -.2px;
}


/* Share toast */
.rdm-share-toast {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(.9);
  background: var(--navy);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.rdm-share-toast.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Share link row — stacked below intro */
.rdm-share-row {
  margin-top: 12px;
}
.rdm-share-wrap {
  position: relative;
  display: inline-block;
}
.rdm-share-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--peri-dark);
}
.rdm-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--peri-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.rdm-share-btn:active { opacity: .6; }
.rdm-share-btn svg { width: 14px; height: 14px; }

/* Share menu — navy card styled like the tips callout */
.rdm-share-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--navy);
  border: none;
  border-radius: 14px;
  padding: 8px 16px;
  min-width: 220px;
  box-shadow: 0 18px 40px -18px rgba(18,52,87,.55);
  flex-direction: column;
  gap: 0;
  z-index: 150;
}
.rdm-share-menu.open { display: flex; }
/* Flip menu above the button so it clears the fixed bottom nav */
.rdm-share-menu {
  top: auto;
  bottom: calc(100% + 10px);
}

.rdm-share-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mint);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  border-bottom: 1px solid rgba(248,244,236,.12);
}
.rdm-share-opt:last-child { border-bottom: none; }
.rdm-share-opt:active { opacity: .7; }
.rdm-share-opt svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; }

/* Intro text */
.rdm-intro {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-top: 16px;
}

/* ====== INGREDIENTS ====== */
.rdm-ingredients {
  padding-bottom: 48px;
}
.rdm-ing-illus {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
  opacity: .85;
}

/* Periwinkle ingredient box */
.rdm-ing-box {
  background: var(--peri);
  border-radius: 14px;
  padding: 6px 20px;
}
.rdm-ing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rdm-ing-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(18,52,87,.12);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--navy);
}
.rdm-ing-list li:last-child { border-bottom: none; }
.rdm-ing-list li strong {
  font-weight: 600;
  color: var(--navy);
}
.rdm-ing-list li.rdm-ing-heading {
  font-family: var(--serif, var(--sans));
  font-style: italic;
  font-size: 15px;
  color: var(--navy);
  padding-top: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(18,52,87,.35);
  letter-spacing: .01em;
}
.rdm-ing-list li.rdm-ing-heading:first-child { padding-top: 4px; }

/* ====== TIPS CALLOUT ====== */
/* Navy card — matches formula section aesthetic */
.rdm-tips {
  background: var(--navy);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}
.rdm-tips-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}
.rdm-tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rdm-tips-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(248,244,236,.72);
  padding: 7px 0;
  border-bottom: 1px solid rgba(248,244,236,.1);
}
.rdm-tips-list li:last-child { border-bottom: none; }
.rdm-tips-list li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url('assets/ill-knife.png') center / contain no-repeat;
  display: inline-block;
  margin-top: 2px;
}

/* ====== METHOD ====== */
.rdm-method {
  padding-top: 0;
  padding-bottom: 48px;
}

.rdm-steps {
  display: flex;
  flex-direction: column;
}
.rdm-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.rdm-step:last-child { border-bottom: none; }
.rdm-step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--peri-dark);
  letter-spacing: -.5px;
  text-align: right;
  line-height: 1;
}
.rdm-step-text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
}

/* ====== WHY PARENTS LOVE THIS ====== */
.rdm-why {
  padding-top: 0;
  padding-bottom: 48px;
}

.rdm-why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rdm-why-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
}
.rdm-why-item:last-child { border-bottom: none; }
.rdm-why-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ====== STORAGE & SAFETY ====== */
.rdm-storage {
  padding-top: 0;
  padding-bottom: 48px;
}

.rdm-storage-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rdm-storage-card {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rdm-storage-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--peri-dark);
  font-weight: 700;
}
.rdm-storage-val {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -.3px;
}
.rdm-storage-note {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ====== CTA (PERIWINKLE) ====== */
.rdm-cta {
  background: var(--peri);
}
.rdm-cta .eyebrow {
  color: var(--peri-dark);
  margin-bottom: 16px;
}
.rdm-cta .eyebrow .dash {
  background: var(--peri-dark);
}
.rdm-cta .m-h2 { color: var(--navy); }
.rdm-cta .m-body { color: var(--navy); opacity: .85; }
.rdm-legal-optin {
  color: var(--navy) !important;
  opacity: .7;
}
.rdm-legal-optin input[type="checkbox"] {
  accent-color: var(--navy) !important;
}
.rdm-cta .form-note {
  color: var(--peri-dark);
  text-align: center;
  margin-top: 8px;
}

.rdm-cta-photo-wrap {
  position: relative;
  width: min(55%, 180px);
  margin: 0 auto 28px;
}
.rdm-cta-photo {
  width: 100%;
  border-radius: 14px;
  display: block;
  transform: rotate(-2deg);
  box-shadow: 0 16px 32px -16px rgba(18,52,87,.35);
}
.rdm-cta-photo-wrap .circle-stamp {
  position: absolute;
  top: -16px;
  right: -20px;
  width: 80px;
  height: 80px;
  z-index: 3;
  filter: drop-shadow(0 6px 12px rgba(18,52,87,.18));
  animation: stampFloat 6s ease-in-out infinite;
}
.rdm-cta-photo-wrap .circle-stamp svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ====== YOU MIGHT ALSO LIKE ====== */
.rdm-also {
  padding-bottom: 40px;
}
.rdm-also-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.3px;
  color: var(--navy);
  margin-bottom: 20px;
}

/* Carousel uses the homepage .carousel / .recipe-card / .carousel-dots classes */
.rdm-carousel-wrap {
  margin: 0 -20px;
  overflow: hidden;
}
.rdm-carousel-wrap .carousel {
  padding: 4px 20px 8px 24px;
  margin: 0;
}
}

/* Filter tag pills under the recipe title (mobile) — outlined, quiet */
.rdm-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 6px;
}
.rdm-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(18, 52, 87, 0.28);
  color: var(--navy, #123457);
  background: transparent;
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1;
}


/* ============================================================
   LUNCHBOX FORMULA ROW — hairline caption (mobile)
   ============================================================ */
.rdm-formula {
  margin: 0 0 4px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--rule, rgba(18, 52, 87, 0.14));
  border-bottom: 1px solid var(--rule, rgba(18, 52, 87, 0.14));
  background: transparent;
  color: var(--navy, #123457);
}
.rdm-formula-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.rdm-formula-eyebrow {
  font-family: "Courier Prime", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peri-dark, #4a5b7d);
  font-weight: 700;
}
.rdm-formula-link {
  font-family: "Courier Prime", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peri-dark, #4a5b7d);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rdm-formula-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.rdm-formula-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}
.rdm-formula-card img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rdm-formula-label {
  font-family: var(--sans, system-ui);
  font-size: 12px;
  color: var(--navy, #123457);
  white-space: nowrap;
  letter-spacing: 0.01em;
}


