.mobile-recipe-detail {
  font-family: "Rockwell", monospace;
  background-color: #fffdf7;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  margin: 8px;
  max-width: 100%;
}

.mobile-header {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.mobile-header h2 {
  font-size: 22px;
  margin: 0;
  color: #aa7529;
}

.mobile-header .mobile-author {
  font-size: 14px;
  color: #5c4322;
  margin: 4px 0 0 0;
}

.mobile-header .close-box {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  background-color: #fdf6ee;
  border: 1px solid #aaa;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-header .close-box:hover {
  background-color: #e8c99e;
}

.mobile-image-wrapper {
  text-align: center;
  margin-bottom: 10px;
}

.mobile-image-wrapper img {
  max-width: 100%;
  height: auto;
  border: 2px solid #d9a760;
  border-radius: 10px;
}

.mobile-description p {
  font-size: 14px;
  color: #634535;
  margin-bottom: 16px;
}

.mobile-ingredients h3,
.mobile-instructions h3 {
  font-size: 18px;
  color: #aa7529;
  border-bottom: 1px solid #d9a760;
  margin-bottom: 6px;
  padding-bottom: 4px;
}

.mobile-ingredients ul,
.mobile-instructions ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 16px;
  font-size: 16px;
  color: #634535;
}

.mobile-ingredients li,
.mobile-instructions li {
  padding: 4px 0;
  border-bottom: 1px dashed #ddd;
}

.mobile-button-row {
  text-align: center;
  margin-top: 20px;
}

.mobile-button-row .close-button {
  font-size: 16px;
  padding: 10px 20px;
  font-family: "Rockwell", monospace;
  background-color: #e8c99e;
  border: none;
  border-radius: 6px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.mobile-button-row .close-button:hover {
  background-color: #edd5b2;
}

.mobile-ingredients .mobile-section-header,
.mobile-instructions .mobile-section-header {
  background-color: #aa7529;
  color: white;
  font-weight: bold;
  padding: 6px 10px;
  margin-top: 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  list-style-type: none;
  border: none;
}

.mobile-signin-body {
  font-family: Arial, sans-serif;
  background: #fff8f1;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-logo {
  width: 100%;
  max-width: 500px;
  margin: 2rem 0 1rem 0;
}

.mobile-logo-full {
  /* override earlier width caps */
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;              /* no extra left/right offset */
  align-self: stretch;    /* in the flex body, fill width */
}


.mobile-form {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.mobile-label {
  margin-top: 1rem;
  font-weight: bold;
}

.mobile-input {
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.mobile-remember {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.mobile-remember input {
  margin-right: 0.5rem;
}

.mobile-button {
  margin-top: .3rem;
  padding: 0.50rem;
  font-size: 1rem;
  background-color: #d35400;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.mobile-button:disabled {
  background-color: #aaa;
}

.mobile-error {
  color: red;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.mobile-heading {
  font-family: "Rockwell", monospace;
  font-size: 20px;
  color: #5c4322;
  text-align: center;
  
  background-color: #fff6e5;
  
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.mobile-signin-body.landing-page .mobile-heading {
  max-width: 400px;
  margin: 0 auto 1.25rem;
  box-sizing: border-box;
}

.mobile-recipe-scrollbox {
  max-height: 1000px;
  min-height: 400px; /* ✅ ADD THIS LINE */
  overflow-y: auto;
  width: 100%;
  max-width: 420px;
  padding: 0 4px;
}

.mobile-recipe-tile {
  background-color: #fffdf7;
  border: 1px solid #e0caa5;
  border-radius: 8px;
  margin-bottom: 12px;
  padding-left: 12px;
  font-family: "Rockwell", monospace;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Left side text column */
.mobile-recipe-text {
  flex: 1 1 auto;
  min-width: 0; /* allow text to shrink instead of forcing wrap everywhere */
}

.mobile-recipe-text h3 {
  font-size: 18px;
  margin: 0 0 4px 0;
  color: #aa7529;
}

.mobile-recipe-text p {
  font-size: 14px;
  color: #634535;
  margin: 4px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* clamp description to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right side thumbnail */
.mobile-recipe-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e0caa5;
  background-color: #f3e2c2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-recipe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.mobile-logo {
  width: 40%;
  max-width: 220px;
  margin: 1.5rem 0 1rem 0;
}

.mobile-signin-body.landing-page .mobile-logo-full {
  width: calc(100% + 2rem);
  max-width: none;
  height: auto;
  display: block;
  margin: -1rem -1rem 0 -1rem; /* cancel body padding on all sides, sit flush */
}

.mobile-category-box {
  width: 100%;
  max-width: none;
  padding: 0.25rem 0 0 0;
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
}


.mobile-category-box label {
  font-family: "Rockwell", monospace;
  font-size: 14px;
  color: #5c4322;
  margin: 0.25rem 0 0.15rem 0;
  display: block;
}


.mobile-category-box select {
  width: 100%;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fffefb;
  color: #5c4322;
  font-family: "Rockwell", monospace;
}

.mobile-search-box {
  width: 100%;
  max-width: none;
  padding: 0.25rem 0 0.25rem 0;
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
}


.mobile-search-row {
  display: flex;
  gap: 0.4rem;                     /* pull input & button closer */
  margin-top: 0.25rem;             /* less space under the label */
}

.mobile-search-row .mobile-input,
.mobile-search-row .mobile-button {
  min-height: 2.7rem;              /* force same visual height */
  font-size: 0.95rem;
}

.mobile-search-row .mobile-button {
background-color: #884422;
}

.mobile-search-row .mobile-input {
  flex: 1 1 auto;
  padding: 0.3rem 0.7rem;          /* slightly slimmer than default */
}

.mobile-search-row .mobile-button {
  flex: 0 0 auto;
  margin-top: 0;                   /* override global .mobile-button margin */
  padding: 0 0.9rem;               /* narrow horizontal padding for a compact button */
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-hint {
  margin-top: 0.25rem;             /* pull the hint closer to the field */
  margin-bottom: 0.1rem;
  font-size: 11px;
  color: #5c4322;
  font-family: "Rockwell", monospace;
}



.mobile-recipe-tile:hover {
  background-color: #fdf2e6;
}

.mobile-filter-options {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: "Rockwell", monospace;
  font-size: 13px;
  margin: 0 0 0.35rem 0;
  flex-wrap: nowrap;
}

.mobile-filter-options label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
/* Combined controls card for view mode + search + category */
.mobile-controls-panel {
  width: 95%;
  max-width: 400px;
  margin: 0.5rem auto 0.5rem auto;
  padding: 0.5rem 0.75rem;
  background-color: #fffdf7;
  border: 1px solid #e0caa5;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}



.mobile-back-link {
  width: 100%;
  max-width: 420px;
  margin: 0.5rem auto -0.5rem auto;
  padding: 0 1rem;
  font-family: "Rockwell", monospace;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}


.mobile-back-link a {
  color: #aa7529;
  text-decoration: none;
  font-size: 14px;
}

.mobile-back-link a:hover {
  text-decoration: underline;
}

.mobile-top-button {
  font-family: "Rockwell", monospace;
  font-size: 13px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background-color: #884422;
  color: #ffffff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-top-button:hover {
  background-color: #b94700;
}

/* Right-side stacked controls (Keep Awake + Dark Mode) */
.mobile-top-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
}

#mobile-alert-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.mobile-alert {
  background-color: #fffdf7;
  border: 2px solid #bb9d57;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-family: 'Rockwell', serif;
}

.mobile-alert p {
  font-size: 16px;
  margin-bottom: 18px;
  color: #5c4322;
}

.mobile-alert button {
  background-color: #d9a760;
  font-family: 'Rockwell', monospace;
  color: #5c4322;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.mobile-alert button:hover {
  background-color: #f2e0c7;
}

.mobile-footer {
  font-family: "Rockwell", serif;
  font-size: 12px;
  color: #888;
  text-align: center;
  /*padding: 5px 10px;*/
  border-top: 1px solid #ddd;
  background-color: #fdf6ee;
}
 
.mobile-footer-note {
  font-size: 11px;
  margin-top: 4px;
}

.mobile-footer a {
  color: #a87000;
  text-decoration: underline;
}

.mobile-footer a:hover {
  color: #5a3c00;
}


html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-signin-body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.mobile-form {
  flex: 1 0 auto;
}

.mobile-footer {
  flex-shrink: 0;
  font-family: "Rockwell", serif;
  font-size: 12px;
  color: #888;
  text-align: center;
  border-top: 1px solid #ddd;
  background-color: #fdf6ee;
  margin-top: auto;
}

.mobile-footer-note {
  font-size: 11px;
  margin-top: 4px;
}

.mobile-footer a {
  color: #a87000;
  text-decoration: underline;
}

.mobile-footer a:hover {
  color: #5a3c00;
}

/* ===== Mobile Landing: TOS/Privacy scroll box =====
   Scoped to landing page body to avoid site-wide side effects */
.mobile-signin-body.landing-page .mobile-form .tos-scroll-box {
  max-height: 260px;          /* force scrolling */
  min-height: 180px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
  background-color: #fffdf7;  /* matches mobile tiles */
  border: 1px solid #e0caa5;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.06);
  padding: 12px;
  color: #5c4322;
  font-family: "Rockwell", monospace;
  line-height: 1.35;
}

/* Comfortable spacing for the row that contains the box + checkbox */
.mobile-signin-body.landing-page .mobile-form .form-row {
  margin-top: 1rem;
}

/* Typographic tweaks inside the scroll box */
.mobile-signin-body.landing-page .mobile-form .tos-scroll-box h2,
.mobile-signin-body.landing-page .mobile-form .tos-scroll-box h3 {
  font-size: 16px;
  margin: 8px 0 6px;
  color: #aa7529;
}

.mobile-signin-body.landing-page .mobile-form .tos-scroll-box p,
.mobile-signin-body.landing-page .mobile-form .tos-scroll-box ul {
  font-size: 14px;
  margin: 6px 0;
}

.mobile-signin-body.landing-page .mobile-form .tos-scroll-box a {
  color: #a87000;
  text-decoration: underline;
}

/* Landing-only: TOS checkbox row */
.mobile-signin-body.landing-page .mobile-form label[for="tos-check-mobile"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: "Rockwell", monospace;
  font-size: 14px;
  color: #5c4322;
  line-height: 1.3;
  cursor: pointer;
}

.mobile-signin-body.landing-page .mobile-form #tos-check-mobile {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: #a87000;    /* matches site accents */
  border-radius: 3px;
}

.mobile-signin-body.landing-page .mobile-form #tos-check-mobile:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mobile-signin-body.landing-page .mobile-form #tos-check-mobile:focus-visible {
  outline: 2px dashed #a87000;
  outline-offset: 2px;
}

/* Text node immediately after the checkbox (wrap the text in a <span>) */
.mobile-signin-body.landing-page .mobile-form #tos-check-mobile + span {
  user-select: none;
}


/* Optional: slim scrollbar (safe to remove if undesired) */
.mobile-signin-body.landing-page .mobile-form .tos-scroll-box::-webkit-scrollbar {
  width: 8px;
}
.mobile-signin-body.landing-page .mobile-form .tos-scroll-box::-webkit-scrollbar-thumb {
  background: #e0caa5;
  border-radius: 8px;
}

/* ===== Landing-only: password strength meter & requirements ===== */
.mobile-signin-body.landing-page .mobile-form .password-strength-meter {
  position: relative;
  height: 8px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px; /* your template already has inline margin; this is a safe default */
}

.mobile-signin-body.landing-page .mobile-form .strength-meter {
  height: 100%;
  width: 0;                 /* JS sets width via strength-* classes */
  background: #ddd;
  transition: width .2s ease, background-color .2s ease;
}

/* Bar fill levels (0..3 to match your JS cap) */
.mobile-signin-body.landing-page .mobile-form .strength-meter.strength-0 { width: 0%;  background: #ddd; }
.mobile-signin-body.landing-page .mobile-form .strength-meter.strength-1 { width: 33%; background: #c0392b; } /* red */
.mobile-signin-body.landing-page .mobile-form .strength-meter.strength-2 { width: 66%; background: #d35400; } /* orange (site accent) */
.mobile-signin-body.landing-page .mobile-form .strength-meter.strength-3 { width: 100%;background: #2e7d32; } /* green */

/* Requirements list styling + colors */
.mobile-signin-body.landing-page .mobile-form .password-requirements {
  list-style: none;
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
}

.mobile-signin-body.landing-page .mobile-form .password-requirements li {
  margin: 4px 0;
}

.mobile-signin-body.landing-page .mobile-form .password-requirements li.not-met { color: #b00020; } /* red */
.mobile-signin-body.landing-page .mobile-form .password-requirements li.met     { color: #2e7d32; } /* green */

/* Landing-only: password row & ghost button */
.mobile-signin-body.landing-page .mobile-form .password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mobile-signin-body.landing-page .mobile-form .password-row .mobile-input {
  flex: 1 1 auto;
}

.mobile-signin-body.landing-page .mobile-form .mobile-button-ghost {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  background: #fffefb;
  color: #5c4322;
  border: 1px solid #bb9d57;
  border-radius: 6px;
  cursor: pointer;
}

.mobile-signin-body.landing-page .mobile-form .mobile-button-ghost[aria-pressed="true"] {
  background: #fff6e5;
}

/* === Landing hero reset: 540x400 images, no zoom, no offset === */
.mobile-signin-body.landing-page #heroRotatorMount {
  display: block;
  width: 100%;
  align-self: stretch;       /* defeat parent align-items: center */
}

.mobile-signin-body.landing-page #hero-rotator {
  position: relative;
  width: 100%;               /* fill content width (inside body padding) */
  aspect-ratio: 27 / 20;     /* 540 / 400 */
  overflow: hidden;
  background: #f3e6d6;       /* soft fallback while first image loads */
  margin: 0 0 1rem 0;        /* no negative margins; no bleed */
}

.mobile-signin-body.landing-page #hero-rotator .hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* with matching ratio, this DOES NOT crop */
  object-position: center;   /* no left/right offset */
  display: block;
  opacity: 0;
  transition: opacity 600ms ease;
}

.mobile-signin-body.landing-page #hero-rotator .hero-frame.active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mobile-signin-body.landing-page #hero-rotator .hero-frame { transition: none; }
}

/* Mobile Signin: Facebook disclaimer (scoped, minimal impact) */
.mobile-fb-disclaimer {
  font-size: 12px;
  line-height: 1.35;
  color: #5c4322;
  text-align: center;
  margin: 0.5rem 0; /* small breathing room around the text only */
}

/* === Facebook Login Button (meets Meta UX guidance) === */
/* Uses site’s existing .mobile-button geometry; only colors/icon added */
.mobile-fb-button {
  background-color: #1877F2;   /* Facebook Blue */
  color: #ffffff;              /* White text for contrast */
  display: inline-flex;        /* allow left icon without changing size */
  align-items: center;
  justify-content: center;
  gap: 8px;                    /* space between icon and label */
  /* do NOT change padding, border-radius, or margins here */
}

.mobile-fb-button:hover {
  background-color: #166FE5;   /* approved hover shade */
}

.mobile-fb-button:focus-visible {
  outline: 2px solid #0a5bd3;  /* accessible focus ring */
  outline-offset: 2px;
}


.mobile-form .mobile-subtext {
  margin: 8px 0 16px;
  font-size: 14px;
  color: #5c4322;
}

.mobile-form .mobile-form-fields .form-row {
  margin-top: 1rem; /* mirrors landing page form row spacing */
}

/* side-by-side inputs like username/confirm or first/last */
.mobile-form .form-row.double {
  display: flex;
  gap: 8px;
}
.mobile-form .form-row.double > div {
  flex: 1 1 0;
}
/* Finalize (social) form: stack first/last name to avoid overflow.
   Scoped to the finalize panel container so the email signup form stays side-by-side. */
#rg-mobile-postsocial-panel .form-row.double {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;         /* comfortable vertical spacing */
}

#rg-mobile-postsocial-panel .form-row.double > div {
  flex: 1 1 auto;
  width: 100%;
}


/* Read-only inputs (Email from Facebook) — subtle disabled look, still legible */
.mobile-form .mobile-input[readonly] {
  background-color: #fff6e5;
  color: #5c4322;
  cursor: not-allowed;
}


/* Left-aligned 'f' glyph (white) as required */
.mobile-fb-button::before {
  content: "";
  width: 30px;
  height: 30px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* Inline SVG: white 'f' (no circle) suitable on blue button */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-hidden='true'>\
  <path fill='%23FFFFFF' d='M15.12 8.5H13c-.36 0-.62.26-.62.65v1.72h2.66l-.35 2.64h-2.31V21h-2.77v-7.49H6.75v-2.64h2.86V9.45c0-2.34 1.42-3.61 3.5-3.61.99 0 1.85.07 2.01.09v2.57z'/>\
</svg>");
}

/* =========================
   Dark Mode for Mobile
   ========================= */

body.mobile-theme-dark {
  background-color: #15110d;
  color: #f5e9d4;
}

/* Kitchen Companion + generic tiles/cards */
body.mobile-theme-dark .mobile-heading {
  background-color: #261b11;
  color: #f8e5c4;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
}

body.mobile-theme-dark .mobile-category-box,
body.mobile-theme-dark .mobile-search-box,
body.mobile-theme-dark .mobile-recipe-tile {
  background-color: #22170f;
  border-color: #5a4630;
  box-shadow: 0 0 6px rgba(0,0,0,0.7);
}

body.mobile-theme-dark .mobile-recipe-tile:hover {
  background-color: #2b1f15;
}

body.mobile-theme-dark .mobile-recipe-text h3 {
  color: #f2c97a;
}

body.mobile-theme-dark .mobile-recipe-text p {
  color: #e2d3bf;
}

body.mobile-theme-dark .mobile-category-box label,
body.mobile-theme-dark .mobile-search-hint {
  color: #e2d3bf;
}

/* Top bar + buttons */
body.mobile-theme-dark .mobile-back-link a {
  color: #f2c97a;
}

body.mobile-theme-dark .mobile-top-button {
  background-color: #c2893b;
  color: #1a110a;
}

body.mobile-theme-dark .mobile-top-button:hover {
  background-color: #e3a54d;
}

/* Make Dark Mode button look "on" when dark theme is active */
body.mobile-theme-dark #darkModeToggle {
  background-color: #3a2a1b;
  color: #f5e9d4;
}

/* Footer */
body.mobile-theme-dark .mobile-footer {
  background-color: #1d1510;
  border-top-color: #4a3928;
  color: #cbbca3;
}

body.mobile-theme-dark .mobile-footer a {
  color: #f2c97a;
}

body.mobile-theme-dark .mobile-footer a:hover {
  color: #ffe39c;
}

/* Recipe detail card, when we add dark mode there later */
body.mobile-theme-dark .mobile-recipe-detail {
  background-color: #22170f;
  color: #f5e9d4;
  box-shadow: 0 0 12px rgba(0,0,0,0.8);
}

body.mobile-theme-dark .mobile-header h2 {
  color: #f2c97a;
}

body.mobile-theme-dark .mobile-description p,
body.mobile-theme-dark .mobile-ingredients ul,
body.mobile-theme-dark .mobile-instructions ul {
  color: #e2d3bf;
}

body.mobile-theme-dark .mobile-ingredients h3,
body.mobile-theme-dark .mobile-instructions h3 {
  color: #f2c97a;
  border-bottom-color: #6b5339;
}

body.mobile-theme-dark .mobile-ingredients li,
body.mobile-theme-dark .mobile-instructions li {
  border-bottom-color: #3a2b1e;
}

body.mobile-theme-dark .mobile-ingredients .mobile-section-header,
body.mobile-theme-dark .mobile-instructions .mobile-section-header {
  background-color: #8c5a28;
}

/* =========================
   Dark Mode for Mobile Recipes
   ========================= */

body.mobile-theme-dark {
  background-color: #15110d;
  color: #f5e9d4;
}

/* Recipe detail card */
body.mobile-theme-dark .mobile-recipe-detail {
  background-color: #22170f;
  color: #f5e9d4;
  box-shadow: 0 0 12px rgba(0,0,0,0.8);
}

/* Header + title */
body.mobile-theme-dark .mobile-header h2 {
  color: #f2c97a;
}

body.mobile-theme-dark .recipe-category {
  color: #e2d3bf;
}

/* Image border */
body.mobile-theme-dark .mobile-image-wrapper img {
  border-color: #8d6a35;
}

/* Description */
body.mobile-theme-dark .mobile-description p {
  color: #e2d3bf;
}

/* Ingredients / instructions headings */
body.mobile-theme-dark .mobile-ingredients h3,
body.mobile-theme-dark .mobile-instructions h3 {
  color: #f2c97a;
  border-bottom-color: #6b5339;
}

/* Ingredients / instructions text + dividers */
body.mobile-theme-dark .mobile-ingredients ul,
body.mobile-theme-dark .mobile-instructions ul {
  color: #f5e9d4;
}

body.mobile-theme-dark .mobile-ingredients li,
body.mobile-theme-dark .mobile-instructions li {
  border-bottom-color: #3a2b1e;
}

/* Section headers within lists */
body.mobile-theme-dark .mobile-ingredients .mobile-section-header,
body.mobile-theme-dark .mobile-instructions .mobile-section-header {
  background-color: #8c5a28;
  color: #fdf3dd;
}

/* Bottom buttons */
body.mobile-theme-dark .mobile-button-row .close-button {
  background-color: #3a2a1b;
  color: #f5e9d4;
  box-shadow: 0 0 6px rgba(0,0,0,0.7);
}

body.mobile-theme-dark .mobile-button-row .close-button:hover {
  background-color: #4b3623;
}






