.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: 80%;
  max-width: 300px;
  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;
}

.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: 18px;
  color: #5c4322;
  text-align: center;
  margin: 0 0 1.25rem 0;
  background-color: #fff6e5;
  padding: 10px;
  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: 600px;
  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: 12px;
  font-family: "Rockwell", monospace;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mobile-recipe-tile h3 {
  font-size: 18px;
  margin: 0 0 4px 0;
  color: #aa7529;
}

.mobile-recipe-tile p {
  font-size: 14px;
  color: #634535;
  margin: 4px 0 0 0;
}

.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: 420px;
  padding: 0.75rem 1rem;
  background-color: #fffdf7;
  border: 1px solid #e0caa5;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.06);
  margin-bottom: 1rem;
}

.mobile-category-box label {
  font-family: "Rockwell", monospace;
  font-size: 16px;
  color: #5c4322;
  margin-bottom: 0.25rem;
  display: block;
  line-height: 1px;
}

.mobile-category-box select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fffefb;
  color: #5c4322;
  font-family: "Rockwell", monospace;
}

.mobile-recipe-tile:hover {
  background-color: #fdf2e6;
}

.mobile-filter-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-family: "Rockwell", monospace;
  font-size: 15px;
  margin: 0.5rem 0 1rem 0;
  flex-wrap: wrap;
}

.mobile-filter-options label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mobile-back-link {
  width: 100%;
  max-width: 420px;
  text-align: left;
  margin: 0.5rem auto -0.5rem auto;
  padding: 0 1rem;
  font-family: "Rockwell", monospace;
}

.mobile-back-link a {
  color: #aa7529;
  text-decoration: none;
  font-size: 14px;
}

.mobile-back-link a:hover {
  text-decoration: underline;
}

#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; }
}








