/* JuniSprouts Grow - layered phone menu (mobile-nav.js).
   Loaded without blocking render; nothing here applies until the menu is opened on a phone. */
.jsm, .jsm *, .jsm *::before, .jsm *::after { box-sizing: border-box; }
.jsm { position: fixed; inset: 0; z-index: 100002; color: var(--jsg-ink); font-family: var(--jsg-body); -webkit-tap-highlight-color: transparent; }
.jsm[hidden] { display: none; }
html.jsm-lock, html.jsm-lock body { overflow: hidden; }

/* Layers */
.jsm__scrim { position: absolute; inset: 0; background: rgba(38, 33, 27, 0.5); opacity: 0; transition: opacity .3s ease; }
.jsm__sheet { position: absolute; top: 0; bottom: 0; left: 0; width: min(92vw, 420px); overflow: hidden; background: var(--jsg-cream); box-shadow: 18px 0 48px rgba(31, 26, 20, 0.24); transform: translateX(-104%); transition: transform .34s cubic-bezier(.22, .8, .24, 1); }
.jsm.is-open .jsm__scrim { opacity: 1; }
.jsm.is-open .jsm__sheet { transform: none; }
.jsm__track { position: relative; height: 100%; }
.jsm__panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--jsg-cream); transform: translateX(100%); visibility: hidden; transition: transform .34s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .34s; }
.jsm__panel.is-active { transform: none; visibility: visible; box-shadow: -16px 0 36px rgba(31, 26, 20, 0.14); transition: transform .34s cubic-bezier(.22, .8, .24, 1); }
.jsm__panel--home { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.22, .8, .24, 1); }
.jsm__panel--home::after { content: ""; position: absolute; inset: 0; background: rgba(38, 33, 27, 0); pointer-events: none; transition: background-color .34s ease; }
.jsm__panel--home.is-under { transform: translateX(-26%); visibility: hidden; transition: transform .34s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .34s; }
.jsm__panel--home.is-under::after { background: rgba(38, 33, 27, 0.16); }
.jsm .is-instant, .jsm .is-instant::after { transition: none !important; }

/* Top bars */
.jsm__bar { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: calc(64px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 12px 0 20px; background: var(--jsg-cream); border-bottom: 1px solid var(--jsg-line); }
.jsm__logo { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; text-decoration: none; color: var(--jsg-ink); }
.jsm__logo img { display: block; width: auto; height: 32px; }
.jsm__name { font: 900 1.2rem var(--jsg-head); }
.jsm__x { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--jsg-oat); color: var(--jsg-ink); cursor: pointer; -webkit-appearance: none; appearance: none; }
.jsm__x:active { background: var(--jsg-line); }
.jsm__bar--sub { grid-template-columns: 92px minmax(0, 1fr) 92px; padding-left: 8px; }
.jsm__bar--sub .jsm__x { justify-self: end; }
.jsm__back { justify-self: start; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: 0; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: none; color: var(--jsg-ink); font: 700 0.95rem/1 var(--jsg-body); cursor: pointer; -webkit-appearance: none; appearance: none; }
.jsm__back:active { background: var(--jsg-oat); }
.jsm__title { margin: 0; overflow: hidden; color: var(--jsg-ink); font: 900 1.1rem/1.2 var(--jsg-head); letter-spacing: 0; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

/* Scrolling body */
.jsm__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.jsm__sec + .jsm__sec { margin-top: 24px; }
.jsm__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; }
.jsm__eyebrow { margin: 0; color: #3D4A35; font: 900 0.74rem/1.2 var(--jsg-body); letter-spacing: 0.09em; text-transform: uppercase; }
.jsm__group .jsm__eyebrow { margin: 0 4px 10px; }
.jsm__group + .jsm__group { margin-top: 22px; }
.jsm__see { color: var(--jsg-green); font: 900 0.85rem/1.2 var(--jsg-body); text-decoration: none; }
.jsm .jsm-ico { flex: none; display: block; }

/* Tones */
.jsm-t--sage { background: var(--jsg-sage-soft); color: var(--jsg-forest); }
.jsm-t--peach { background: var(--jsg-peach-soft); color: var(--jsg-soil-ink); }
.jsm-t--wood { background: #F1E6D6; color: #3A2A1F; }
.jsm-t--oat { background: var(--jsg-oat); color: var(--jsg-ink); }

/* Age tiles */
.jsm-ages { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.jsm-age { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; aspect-ratio: 1; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(61, 61, 61, 0.05); text-decoration: none; transition: transform .15s ease; }
.jsm-age b { font: 900 1.75rem/1 var(--jsg-head); }
.jsm-age span { font: 700 0.75rem/1 var(--jsg-body); opacity: .85; }
.jsm-age:active { transform: scale(.97); }

/* Card lists */
.jsm-list { list-style: none; margin: 0; padding: 0; overflow: hidden; border-radius: 18px; background: var(--jsg-paper); box-shadow: 0 0 0 1px var(--jsg-line), 0 2px 6px rgba(61, 61, 61, 0.04); }
.jsm-list > li { margin: 0; }
.jsm-list > li + li { border-top: 1px solid var(--jsg-line); }
.jsm-list--rows > li + li { border-top: 0; }
.jsm-list--rows > li + li::before { content: ""; display: block; height: 1px; margin-left: 72px; background: var(--jsg-line); }
.jsm-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; margin: 0; padding: 12px 14px; border: 0; border-radius: 0; background: none; color: var(--jsg-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.jsm-row__img { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 14px; }
.jsm-row__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jsm-row__img.is-contain img { padding: 2px; object-fit: contain; }
.jsm-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jsm-row__name { font: 800 1.03rem/1.25 var(--jsg-head); }
.jsm-row__sub { overflow: hidden; color: var(--jsg-muted); font: 400 0.82rem/1.3 var(--jsg-body); text-overflow: ellipsis; white-space: nowrap; }
.jsm-row__go { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--jsg-cream); color: #8A8378; }
.jsm-row:active, .jsm-link:active { background: var(--jsg-oat); }

/* Sub-layer links */
.jsm-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; margin: 0 0 24px; padding: 0 16px 0 18px; border-radius: 16px; background: var(--jsg-green); color: #fff; font: 900 1rem/1.2 var(--jsg-body); text-decoration: none; box-shadow: 0 8px 18px -12px rgba(47, 58, 41, 0.7); }
.jsm-all:active { background: var(--jsg-green-dk); }
.jsm-link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px 8px 18px; color: var(--jsg-ink); font: 700 0.98rem/1.3 var(--jsg-body); text-decoration: none; }
.jsm-link__t { flex: 1; min-width: 0; }
.jsm-link .jsm-ico { color: #A39C90; }
.jsm-list--posts .jsm-link { font-weight: 400; font-size: 0.93rem; }
.jsm-list--posts .jsm-link__t { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.jsm-dot { flex: none; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--jsg-sage); }
.jsm-dot.jsb-dot--peach { background: var(--jsg-peach); }
.jsm-dot.jsb-dot--sage { background: var(--jsg-sprout); }
.jsm-dot.jsb-dot--wood { background: var(--jsg-wood); }
.jsm-dot.jsb-dot--oat { background: #CBBFAA; }

/* Feature card (sub layers) */
.jsm-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 24px; padding: 14px; border-radius: 20px; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(61, 61, 61, 0.05); }
.jsm-card.is-noimg { grid-template-columns: minmax(0, 1fr); padding: 18px; }
.jsm-card__img { display: block; width: 84px; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--jsg-paper); }
.jsm-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jsm-card__img.is-contain img { padding: 6px; object-fit: contain; }
.jsm-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jsm-card__title { font: 900 1.02rem/1.2 var(--jsg-head); }
.jsm-card__text { color: #57534D; font: 400 0.85rem/1.4 var(--jsg-body); }
.jsm-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--jsg-forest); font: 900 0.85rem/1.2 var(--jsg-body); }

/* Gift finder */
.jsm-finder { display: grid; grid-template-columns: minmax(0, 1fr) 76px; align-items: center; gap: 12px; padding: 18px 14px 18px 18px; border-radius: 20px; background: var(--jsg-peach); color: var(--jsg-soil-ink); text-decoration: none; box-shadow: 0 10px 22px -14px rgba(93, 69, 52, 0.6); }
.jsm-finder__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.jsm-finder__title { font: 900 1.1rem/1.2 var(--jsg-head); }
.jsm-finder__text { font: 400 0.86rem/1.4 var(--jsg-body); }
.jsm-finder__cta { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 8px; padding: 0 14px; border-radius: 999px; background: var(--jsg-soil-ink); color: var(--jsg-cream); font: 900 0.85rem/1 var(--jsg-body); }
.jsm-finder__img { display: block; width: 76px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.jsm-finder__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jsm-finder:active { background: #F0A27F; }

/* Account / wishlist / help */
.jsm-utils { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.jsm-util { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 80px; padding: 12px 6px; border-radius: 18px; background: var(--jsg-paper); box-shadow: inset 0 0 0 1px var(--jsg-line); color: var(--jsg-ink); font: 700 0.8rem/1.2 var(--jsg-body); text-align: center; text-decoration: none; }
.jsm-util .jsm-ico { color: var(--jsg-green); }
.jsm-util:active { background: var(--jsg-oat); }
.jsm-util__n { position: absolute; top: 9px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--jsg-peach); color: var(--jsg-soil-ink); font: 900 0.68rem/18px var(--jsg-body); text-align: center; }
.jsm-util__n[hidden] { display: none; }

/* Promises */
.jsm-promise { list-style: none; margin: 0; padding: 4px 16px; border-radius: 18px; background: var(--jsg-oat); }
.jsm-promise li { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; color: var(--jsg-ink); font: 700 0.86rem/1.3 var(--jsg-body); }
.jsm-promise li + li { border-top: 1px solid rgba(61, 61, 61, 0.08); }
.jsm-promise .jsm-ico { color: var(--jsg-green); }
.jsm-promise a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.jsm__tag { margin: 20px 0 0; color: var(--jsg-muted); font: 800 0.85rem/1.3 var(--jsg-head); text-align: center; }

/* Focus and hover */
.jsm :focus-visible { outline: 2px solid var(--jsg-ink); outline-offset: 2px; }
.jsm .jsm-row:focus-visible, .jsm .jsm-link:focus-visible { outline-offset: -3px; border-radius: 16px; }
@media (hover: hover) {
  .jsm-row:hover, .jsm-link:hover { background: var(--jsg-oat); }
  .jsm__x:hover, .jsm__back:hover { background: var(--jsg-line); }
  .jsm-util:hover { background: var(--jsg-oat); }
}
@media (prefers-reduced-motion: reduce) {
  .jsm__scrim, .jsm__sheet, .jsm__panel, .jsm__panel--home::after, .jsm-age { transition: none !important; }
}
