.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 Signup Page – TOS Scroll Constraint
   Scoped to signup page only
   ========================================= */

.signup-has-sticky .tos-scroll-box {
  max-height: 140px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px; /* prevents scrollbar text overlap */
}


.mobile-signin-body {
  font-family: Arial, sans-serif;
  background: #fff8f1;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-signin-body .no-credit-card-note {
  margin: -0.75rem 0 1rem 0;
  text-align: center;
  font-family: Georgia, serif;
  font-size: .85rem;
  font-weight: 700;
  color: #5b3a1b;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

/* =====================================================
   Mobile Signup Page (signup-has-sticky)
   Mirrors landing-page form layout styles
   ===================================================== */

.mobile-signin-body.signup-has-sticky .mobile-form .tos-scroll-box {
  max-height: 260px;
  min-height: 180px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #fffdf7;
  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;
}

/* Sticky-signup hardening: JS adds .force-scroll to guarantee scroll-box behavior */
.mobile-signin-body.signup-has-sticky .mobile-form .tos-scroll-box.force-scroll {
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Make the “locked” checkbox look locked (visual feedback only) */
.mobile-signin-body.signup-has-sticky #tos-check-mobile:disabled {
  opacity: 0.6;
}

.mobile-signin-body.signup-has-sticky #tos-check-mobile:disabled + label {
  opacity: 0.6;
  cursor: not-allowed;
}


/* checkbox row */
.mobile-signin-body.signup-has-sticky .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;
  cursor: pointer;
}
.mobile-signin-body.signup-has-sticky .mobile-form #tos-check-mobile {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: #a87000;
  border-radius: 3px;
}

/* password meter + requirements */
.mobile-signin-body.signup-has-sticky .mobile-form .password-strength-meter {
  position: relative;
  height: 8px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}
.mobile-signin-body.signup-has-sticky .mobile-form .strength-meter {
  height: 100%;
  width: 0;
  transition: width .2s ease, background-color .2s ease;
}
.mobile-signin-body.signup-has-sticky .mobile-form .strength-meter.strength-1 { width: 33%; background: #c0392b; }
.mobile-signin-body.signup-has-sticky .mobile-form .strength-meter.strength-2 { width: 66%; background: #d35400; }
.mobile-signin-body.signup-has-sticky .mobile-form .strength-meter.strength-3 { width: 100%; background: #2e7d32; }

.mobile-signin-body.signup-has-sticky .mobile-form .password-requirements {
  list-style: none;
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
}
.mobile-signin-body.signup-has-sticky .mobile-form .password-requirements li.not-met { color: #b00020; }
.mobile-signin-body.signup-has-sticky .mobile-form .password-requirements li.met { color: #2e7d32; }

.mobile-signin-body.signup-has-sticky .mobile-form .password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-signin-body.signup-has-sticky .mobile-form .password-row .mobile-input {
  flex: 1 1 auto;
}
.mobile-signin-body.signup-has-sticky .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.signup-has-sticky .mobile-form .mobile-button-ghost[aria-pressed="true"] {
  background: #fff6e5;
}



.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: 2rem;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #d35400;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;

  /* Make buttons work consistently for <a> and <button> */
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}


.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;
}

/* Index page: center and constrain heading like landing, but scoped to mobile-index-body */
body.mobile-index-body .mobile-heading {
  max-width: 400px;
  margin: 0.75rem auto 0.75rem;
  box-sizing: border-box;
}

/* Index page: main info card shares tile/control styling via mobile-controls-panel */
.mobile-index-body .mobile-index-panel {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: "Rockwell", monospace;
}

/* Index page: section headings inside the card */
.mobile-index-body .mobile-index-panel h3 {
  font-size: 18px;
  color: #aa7529;
  text-align: center;
  margin: 0.5rem 0 0.25rem 0;
}

/* Index page: paragraph text inside the card */
.mobile-index-body .mobile-index-panel p {
  font-size: 14px;
  color: #5c4322;
  line-height: 1.4;
  margin: 0.25rem 0 0.75rem 0;
  text-align: left;
}

/* Index page: slender dividers between content sections inside the main card */
.mobile-index-body .mobile-index-panel .mobile-section + .mobile-section {
  border-top: 1px solid #e0caa5;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

/* Index page: separators for sections rendered inside placeholders + blog section */
.mobile-index-body .mobile-index-panel #mobileHowItFeelsPlaceholder .mobile-section,
.mobile-index-body .mobile-index-panel #mobileTiersPlaceholder .mobile-section,
.mobile-index-body .mobile-index-panel #mobilePrivacyPlaceholder .mobile-section,
.mobile-index-body .mobile-index-panel #mobilePersonasPlaceholder .mobile-section,
.mobile-index-body .mobile-index-panel #mobileFaqPlaceholder .mobile-section,
.mobile-index-body .mobile-index-panel #mobileCreatorPlaceholder .mobile-section,
.mobile-index-body .mobile-index-panel .mobile-blog-section {
  border-top: 1px solid #e0caa5;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}


/* Index page: CTA buttons under the last section */
.mobile-index-body .mobile-index-panel .mobile-index-cta-row {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Index page: desktop preview hero image inside the info card */
.mobile-index-body .mobile-index-panel .mobile-index-hero-figure {
  margin: 0.5rem 0 0.75rem 0;
  text-align: center;
}

.mobile-index-body .mobile-index-panel .mobile-index-hero-figure img {
  width: 100%;
  max-width: 420px;                 /* visual width target on most phones */
  height: auto;
  border: 2px solid #d9a760;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
  display: block;
  margin: 0 auto;
}

.mobile-index-body .mobile-index-panel .mobile-index-hero-figure figcaption {
  font-size: 12px;
  color: #5c4322;
  margin-top: 0.4rem;
  line-height: 1.3;
}

/* Index page: dynamic content sections (how it feels, tiers, privacy, personas, FAQ, creator) */

.mobile-index-body .mobile-index-panel .mobile-howfeels-body,
.mobile-index-body .mobile-index-panel .mobile-privacy-body,
.mobile-index-body .mobile-index-panel .mobile-creator-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Shared image styling for content sections */
.mobile-index-body .mobile-index-panel .mobile-howfeels-image,
.mobile-index-body .mobile-index-panel .mobile-privacy-image,
.mobile-index-body .mobile-index-panel .mobile-creator-image {
  text-align: center;
  margin: 0.25rem 0 0.5rem 0;
}

.mobile-index-body .mobile-index-panel .mobile-howfeels-image img,
.mobile-index-body .mobile-index-panel .mobile-privacy-image img,
.mobile-index-body .mobile-index-panel .mobile-creator-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border: 2px solid #d9a760;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
  display: block;
  margin: 0 auto;
}

/* Tiers grid: stacked cards matching the tile vibe */
.mobile-index-body .mobile-index-panel .mobile-tiers-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.mobile-index-body .mobile-index-panel .mobile-tier-card {
  background-color: #fffdf7;
  border: 1px solid #e0caa5;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.mobile-index-body .mobile-index-panel .mobile-tier-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}

.mobile-index-body .mobile-index-panel .mobile-tier-name {
  font-size: 16px;
  margin: 0;
  color: #aa7529;
}

.mobile-index-body .mobile-index-panel .mobile-tier-label {
  font-size: 11px;
  color: #634535;
  background-color: #f8e7c7;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

.mobile-index-body .mobile-index-panel .mobile-tier-image {
  text-align: center;
  margin: 0.25rem 0 0.35rem 0;
}

.mobile-index-body .mobile-index-panel .mobile-tier-image img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #d9a760;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
  object-fit: cover;
}

.mobile-index-body .mobile-index-panel .mobile-tier-summary {
  font-size: 13px;
  margin: 0 0 0.25rem 0;
}

.mobile-index-body .mobile-index-panel .mobile-tier-list {
  margin: 0.1rem 0 0.35rem 0;
  padding-left: 1rem;
  font-size: 13px;
}

/* Personas: stacked cards */
.mobile-index-body .mobile-index-panel .mobile-persona-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.mobile-index-body .mobile-index-panel .mobile-persona-card {
  background-color: #fffdf7;
  border: 1px solid #e0caa5;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.mobile-index-body .mobile-index-panel .mobile-persona-header {
  margin-bottom: 0.25rem;
}

.mobile-index-body .mobile-index-panel .mobile-persona-name {
  font-size: 16px;
  margin: 0;
  color: #aa7529;
}

.mobile-index-body .mobile-index-panel .mobile-persona-image {
  text-align: center;
  margin: 0.25rem 0 0.35rem 0;
}

.mobile-index-body .mobile-index-panel .mobile-persona-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #d9a760;
  box-shadow: 0 0 4px rgba(0,0,0,0.25);
  object-fit: cover;
}

/* FAQ: details/summary styled as small cards */
.mobile-index-body .mobile-index-panel .mobile-faq-list {
  margin-top: 0.25rem;
}

.mobile-index-body .mobile-index-panel .mobile-faq-item {
  background-color: #fffdf7;
  border: 1px solid #e0caa5;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.4rem;
}

.mobile-index-body .mobile-index-panel .mobile-faq-question {
  font-size: 14px;
  color: #aa7529;
}

.mobile-index-body .mobile-index-panel .mobile-faq-answer {
  font-size: 13px;
  margin-top: 0.25rem;
}

/* Creator QA items: dashed border to differentiate */
.mobile-index-body .mobile-index-panel .mobile-creator-qa {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-index-body .mobile-index-panel .mobile-creator-qa-item {
  background-color: #fffdf7;
  border: 1px dashed #e0caa5;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
}

.mobile-index-body .mobile-index-panel .mobile-creator-question {
  font-size: 14px;
  margin: 0 0 0.2rem 0;
  color: #aa7529;
}

.mobile-index-body .mobile-index-panel .mobile-creator-answer {
  font-size: 13px;
  margin: 0;
}

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff7ec;
  border-top: 2px solid #c9a46a;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-cta-primary {
  background-color: #cc5a1a;
  color: #fff;
}

.mobile-cta-secondary {
  background-color: #8b5a2b;
  color: #fff;
}


.mobile-recipe-scrollbox {
  max-height: 1000px;
  min-height: 400px; /* ✅ ADD THIS LINE */
  overflow-y: auto;
  width: 100%;
  max-width: 420px;
  padding: 0 4px;
}

/* Mobile index: blog highlight section */
.mobile-blog-section {
  margin-top: 0.75rem;
}

.mobile-blog-intro {
  font-size: 13px;
  color: #5c4322;
  margin: 0.25rem 0 0.5rem 0;
}

/* Scrollbox tuned to show ~2–3 tiles tall, with a clear border */
.mobile-blog-scrollbox {
  max-height: 260px;
  min-height: 160px;
  background-color: #fffdf7;
  border: 1px solid #e0caa5;
  border-radius: 8px;
  padding: 4px 4px;
}


.mobile-blog-placeholder {
  font-size: 13px;
  color: #7a5a32;
  padding: 8px 4px;
}

/* Blog tiles reuse recipe tile look but are clickable links */
.mobile-blog-tile {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-blog-tile .mobile-recipe-text h3 {
  font-size: 15px;
  margin-bottom: 3px;
}

.mobile-blog-tile .mobile-recipe-text p {
  font-size: 13px;
  margin: 0;
}



.mobile-tier0-message {
  font-family: "Rockwell", monospace;
  font-size: 14px;
  color: #5c4322;
  padding: 0.5rem 0.25rem;
  text-align: left;
}

.mobile-tier0-cta-row {
  margin-top: 0.25rem;
  text-align: center;
}

/* Tier 0 sticky CTA bar at bottom of screen */
.mobile-tier0-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff6e5;
  border-top: 1px solid #d9a760;
  padding: 0.4rem 0.75rem 0.6rem;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
  z-index: 9000;
  display: none; /* JS will enable this for Tier 0 preview */
}

.mobile-tier0-sticky-inner {
  width: 100%; 
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Mobile index: sticky signup/signin bar at bottom of screen */
body.mobile-index-body {
  padding-bottom: 5rem; /* keep content from hiding under the bar */
}

.mobile-index-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff6e5;
  border-top: 1px solid #d9a760;
  padding: 0.4rem 0.75rem 0.6rem;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
  z-index: 9000;
}

.mobile-index-sticky-inner {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Tighten vertical spacing on buttons inside the sticky bar */
.mobile-index-sticky-inner .mobile-button {
  margin-top: 0;
}

/* Dark mode variant for index sticky bar */
body.mobile-theme-dark .mobile-index-sticky-bar {
  background-color: #1d1510;
  border-top-color: #4a3928;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.8);
}


/* Tighten vertical spacing for buttons inside the sticky bar */
.mobile-tier0-sticky-inner .mobile-button {
  margin-top: 0;
}

/* Ensure content isn't hidden behind the sticky bar in preview mode */
body.mobile-tier0-preview .mobile-recipe-scrollbox {
  padding-bottom: 5.5rem;
}

/* Dark mode variant for sticky bar */
body.mobile-theme-dark .mobile-tier0-sticky-bar {
  background-color: #1d1510;
  border-top-color: #4a3928;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.8);
}



.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;
}

/* Marketing message tiles in Tier 0 preview: very similar to recipes, slightly highlighted */
/* Emphasized marketing / CTA tiles inside Tier 0 preview */
.mobile-message-tile {
  background: linear-gradient(
    180deg,
    #fff7eb 0%,
    #fff1df 100%
  );
  border: 2px dashed #c28a3a;
  box-shadow: 0 2px 6px rgba(150, 90, 30, 0.15);
}

/* Slight visual lift on tap / hover */
.mobile-message-tile:hover,
.mobile-message-tile:active {
  box-shadow: 0 4px 10px rgba(150, 90, 30, 0.25);
}

.mobile-message-tile h3 {
  color: #a35a14;
  font-weight: bold;
}

.mobile-message-tile::before {
  content: "★";
  color: #c28a3a;
  font-size: 0.85rem;
  margin-right: 0.35rem;
}


/* 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 */
}

/* ================================
   FIX: Minimybox search button sizing
   Scope to search row only
   ================================ */

.mobile-search-row .mobile-button {
  width: auto;              /* undo full-width CTA behavior */
  min-width: 88px;          /* stable tap target */
  padding: 0 0.9rem;        /* horizontal button, not block */
  margin-top: 0;            /* kill global margin-top */
  flex: 0 0 auto;           /* do NOT stretch */
  font-size: 0.95rem;
}


.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);
}

/* Tier 0 preview: hide search + category areas, leave view radios visible */
body.mobile-tier0-preview .mobile-search-box,
body.mobile-tier0-preview .mobile-category-box {
  display: none;
}




.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;
}

/* ===== Mobile Signup: above-the-fold "Learn More" CTA + sticky bar ===== */

#signupForm-placeholder { display: block; width: 100%; }
#postSignupPanel { display: none; }

.mobile-top-cta {
  width: 100%;
  max-width: 350px;
  margin: 0 0 1rem 0;
}

.mobile-top-cta-note {
  margin: 0.5rem 0 0 0;
  text-align: center;
  font-size: 14px;
  color: #5c4322;
}

.mobile-center-text { text-align: center; }
.mobile-mt-1 { margin-top: 1rem; }

.mobile-button.secondary,
.mobile-button.mobile-cta-secondary {
  background: #d35400;
  color: white;
  border: 1px solid #bb9d57;
  margin-top: 0;
}

.mobile-button.mobile-cta-primary {
  background-color: #d35400;
  color: white;
  border: none;
}

/* Keep content from being hidden under the fixed bar */
.signup-has-sticky { padding-bottom: 110px; }

.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 248, 241, 0.96);
  border-top: 1px solid #e0caa5;
  display: flex;
  gap: 12px;
  z-index: 2000;
}

.mobile-sticky-cta .mobile-button {
  margin-top: 0;
  flex: 1 1 0;
}

/* =========================================================
   Mobile Index Sticky CTA Bar (scoped styles only)
   ========================================================= 

.mobile-index-sticky-bar .mobile-button {
  flex: 1;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}


#mobileIndexSignupBtn {
  background-color: #8a4b24;
  color: #fff;
}

#mobileIndexSigninBtn {
  background-color: #e6d3b1;
  color: #3b2a1a;
}*/

/* ===== Gift pages (mobile-getgift.html / mobile-usegift.html) ===== */
.mobile-signin-body.gift-page .mobile-form {
  /* Let the existing tile styles do the heavy lifting */
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  width: 100%;
  max-width: 420px;
}

.mobile-signin-body.gift-page .mobile-form img {
  max-width: 100%;
  height: auto;
}

.mobile-signin-body.gift-page .mobile-recipe-tile h3 {
  margin-top: 0;
}

.mobile-signin-body.gift-page .mobile-recipe-tile h4 {
  margin: 0.5rem 0 0.25rem 0;
  font-size: 1.05rem;
  color: #634535;
  font-family: Rockwell, serif;
}

.mobile-signin-body.gift-page .mobile-recipe-tile ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.mobile-signin-body.gift-page .mobile-recipe-tile li {
  margin: 0.25rem 0;
}

.mobile-signin-body.gift-page .mobile-button-row {
  margin: 1rem 0 0 0;
}

.mobile-signin-body.gift-page .mobile-button-row p {
  margin: 0 0 0.75rem 0;
  color: #634535;
  font-family: Rockwell, serif;
}

/* Sticky CTA support */
.signup-has-sticky {
  padding-bottom: 96px; /* keep last content from hiding under the sticky bar */
}

.signup-has-sticky .mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem 1rem 1rem;
  background: #fffef8;
  border-top: 1px solid #e2caa5;
  display: flex;
  justify-content: center;
  z-index: 999;
}

.signup-has-sticky .mobile-sticky-cta .mobile-button {
  margin-top: 0;
  width: 100%;
  max-width: 420px;
}


