/* YWI Public — shared styles for meditation library, community/meetups, onboarding.
   These tokens previously held the older "Soft Bloom" palette (berry/rose/gold/
   sage + Nunito) — the Dashboard, Login page, and the rest of the site moved to
   the current plum/rose/gold/sage + Manrope direction back in v1.6.0, but this
   file never followed, leaving these three pages (Meditation Library, Community,
   Onboarding) visibly out of step with everywhere else a member goes. Same
   variable names kept so every existing var() reference below still resolves —
   only the values change. */
.ywi-public {
	--berry: #2E2433; --rose-deep: #A85D6E; --rose: #C77B8A;
	--blush: #F7E6E8; --gold: #D9A85C; --sage: #8FA97E; --sage-light: #E9F0E1;
	--cream: #FBF7EF; --white: #FFFFFF; --line: rgba(46,36,51,0.10); --muted: #6B5D6E;
	--rose-soft: #F4DADD; --sage-deep: #5E7A55; --gold-light: #FBF0DA;
	--font-display: "Fraunces", serif; --font-body: "Manrope", sans-serif; --font-script: "Caveat", cursive;
	font-family: var(--font-body); color: var(--berry);
	max-width: 1080px; margin: 0 auto; padding: 20px;
}
.ywi-public * { box-sizing: border-box; }
.ywi-public h1, .ywi-public h2, .ywi-public h3, .ywi-public h4 { font-family: var(--font-display); font-weight: 500; }
.ywi-eyebrow-script { font-family: var(--font-script); font-size: 1.3rem; color: var(--rose-deep); display: block; margin-bottom: -4px; }
.ywi-lede { color: var(--muted); line-height: 1.6; max-width: 480px; margin: 10px 0 24px; }
.ywi-lede-small { color: var(--muted); font-size: .88rem; }

/* Hero titles */
.ywi-med-title { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 4px 0 8px; }
.ywi-med-title em { font-style: italic; color: var(--rose-deep); }
.ywi-med-hero, .ywi-comm-hero { padding: 24px 0 8px; }
.ywi-med-hero, .ywi-comm-hero, .ywi-dir-hero { animation: ywi-hero-in .6s ease-out; }
.ywi-med-hero > *, .ywi-comm-hero > *, .ywi-dir-hero > * { opacity: 0; animation: ywi-fade-up .6s ease-out forwards; }
.ywi-med-hero > *:nth-child(1), .ywi-comm-hero > *:nth-child(1), .ywi-dir-hero > *:nth-child(1) { animation-delay: .05s; }
.ywi-med-hero > *:nth-child(2), .ywi-comm-hero > *:nth-child(2), .ywi-dir-hero > *:nth-child(2) { animation-delay: .15s; }
.ywi-med-hero > *:nth-child(3), .ywi-comm-hero > *:nth-child(3), .ywi-dir-hero > *:nth-child(3) { animation-delay: .25s; }
.ywi-med-hero > *:nth-child(4), .ywi-comm-hero > *:nth-child(4), .ywi-dir-hero > *:nth-child(4) { animation-delay: .35s; }
@keyframes ywi-hero-in { from { opacity: .4; } to { opacity: 1; } }
@keyframes ywi-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons */
.ywi-btn-primary {
	font-family: var(--font-body); font-weight: 700; font-size: .92rem; color: var(--white);
	background: linear-gradient(135deg, var(--rose-deep) 0%, var(--rose) 100%);
	border: none; padding: 14px 30px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-block;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ywi-btn-primary:hover { transform: translateY(-2px); }
.ywi-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.ywi-btn-ghost { font-family: var(--font-body); font-weight: 700; font-size: .9rem; background: none; border: none; color: var(--muted); cursor: pointer; padding: 10px; }
.ywi-btn-ghost:hover { color: var(--rose-deep); }
.ywi-btn-light { font-family: var(--font-body); font-weight: 800; font-size: .9rem; color: var(--berry); background: var(--white); border: none; padding: 13px 24px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease; }
.ywi-btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.ywi-btn-outline { font-size: .78rem; font-weight: 800; color: var(--rose-deep); background: var(--white); border: 2px solid var(--line); padding: 7px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: border-color .18s ease, transform .18s ease; display: inline-block; }
.ywi-btn-outline:hover { border-color: var(--rose-deep); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .ywi-btn-light, .ywi-btn-outline, .ywi-med-card, .ywi-group-card, .ywi-dir-card { transition: none; } }

/* Chips / filters */
.ywi-filter-row, .ywi-chapter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.ywi-chip { font-weight: 700; font-size: .85rem; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); cursor: pointer; }
.ywi-chip.active { border-color: var(--rose-deep); background: var(--rose-deep); color: var(--white); }

/* Empty state */
.ywi-empty-state { text-align: center; padding: 60px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: 22px; margin: 20px 0; }
.ywi-host-meetup-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-top: 20px; }
.ywi-dash-hint { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
#ywi-host-chapter-wrap select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .92em; font-family: inherit; background: var(--white); color: var(--berry); }
.ywi-empty-icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.ywi-empty-state h3 { font-size: 1.2rem; margin-bottom: 6px; }
.ywi-empty-state p { color: var(--muted); font-size: .9rem; }

/* Practice / streak */
.ywi-practice-card { background: var(--berry); color: var(--white); border-radius: 22px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.ywi-practice-card h5 { font-size: 1.05rem; } .ywi-practice-card p { font-size: .85rem; opacity: .78; margin-top: 3px; }
.ywi-streak-dots { display: flex; gap: 6px; }
.ywi-streak-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.ywi-streak-dot.done { background: var(--gold); }

/* Meditation grid */
.ywi-med-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 10px; }
.ywi-med-video-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(46,36,51,.82); align-items: center; justify-content: center; padding: 24px; }
.ywi-med-video-modal-inner { position: relative; width: min(880px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.ywi-med-video-frame, .ywi-med-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ywi-med-video-close { position: absolute; top: -46px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ywi-med-video-close:hover { background: rgba(255,255,255,.28); }
@media (max-width: 640px) { .ywi-med-video-close { top: -42px; } }

/* Staggered entrance — one rule set covers every card grid (meditation,
   groups/meetups, directory) since they all render cards as direct
   children of a grid container. Capped at 8 so a long list doesn't leave
   the last card waiting a full second to appear. */
.ywi-med-grid > *, .ywi-group-grid > *, .ywi-dir-grid > * { opacity: 0; animation: ywi-fade-up .5s ease-out forwards; }
.ywi-med-grid > *:nth-child(1), .ywi-group-grid > *:nth-child(1), .ywi-dir-grid > *:nth-child(1) { animation-delay: .05s; }
.ywi-med-grid > *:nth-child(2), .ywi-group-grid > *:nth-child(2), .ywi-dir-grid > *:nth-child(2) { animation-delay: .1s; }
.ywi-med-grid > *:nth-child(3), .ywi-group-grid > *:nth-child(3), .ywi-dir-grid > *:nth-child(3) { animation-delay: .15s; }
.ywi-med-grid > *:nth-child(4), .ywi-group-grid > *:nth-child(4), .ywi-dir-grid > *:nth-child(4) { animation-delay: .2s; }
.ywi-med-grid > *:nth-child(5), .ywi-group-grid > *:nth-child(5), .ywi-dir-grid > *:nth-child(5) { animation-delay: .25s; }
.ywi-med-grid > *:nth-child(6), .ywi-group-grid > *:nth-child(6), .ywi-dir-grid > *:nth-child(6) { animation-delay: .3s; }
.ywi-med-grid > *:nth-child(n+7), .ywi-group-grid > *:nth-child(n+7), .ywi-dir-grid > *:nth-child(n+7) { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
	.ywi-med-hero > *, .ywi-comm-hero > *, .ywi-dir-hero > *,
	.ywi-med-grid > *, .ywi-group-grid > *, .ywi-dir-grid > * { animation: none; opacity: 1; }
	.ywi-med-hero, .ywi-comm-hero, .ywi-dir-hero { animation: none; }
}
.ywi-med-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.ywi-med-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(92, 54, 72, .1); }
.ywi-med-card.locked { opacity: .65; }
.ywi-med-card-top { display: flex; align-items: center; justify-content: space-between; }
.ywi-med-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--blush) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.ywi-med-duration { font-size: .78rem; font-weight: 800; color: var(--muted); background: var(--cream); padding: 4px 10px; border-radius: 999px; }
.ywi-voice { font-size: .82rem; color: var(--muted); }
.ywi-med-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.ywi-med-tag { font-size: .72rem; font-weight: 800; color: var(--rose-deep); text-transform: uppercase; }
.ywi-play-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); cursor: pointer; color: var(--rose-deep); }
.ywi-play-btn.playing { background: var(--rose-deep); color: var(--white); }

/* Community */
.ywi-chapter-chip { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; flex: 1; min-width: 150px; }
.ywi-chapter-chip .ywi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.ywi-chapter-chip .ywi-count { margin-left: auto; font-size: .74rem; color: var(--muted); font-weight: 700; }
.ywi-section { margin: 36px 0 0; }
.ywi-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.ywi-section-head h2 { font-size: 1.35rem; }
.ywi-see-all { font-size: .85rem; font-weight: 800; color: var(--rose-deep); text-decoration: none; border-bottom: 1.5px solid var(--rose); }
.ywi-meetup-card { background: var(--berry); color: var(--white); border-radius: 26px; padding: 26px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ywi-meetup-date { flex-shrink: 0; width: 80px; height: 80px; border-radius: 18px; background: rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ywi-meetup-date .day { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.ywi-meetup-date .mon { font-size: .68rem; font-weight: 800; opacity: .8; text-transform: uppercase; margin-top: 4px; }
.ywi-meetup-body { flex: 1; min-width: 200px; }
.ywi-tag { font-size: .72rem; font-weight: 800; color: var(--gold); text-transform: uppercase; }
.ywi-meetup-body h3 { font-size: 1.25rem; margin: 4px 0 6px; }
.ywi-meetup-body p { font-size: .86rem; opacity: .82; line-height: 1.5; }
.ywi-meetup-meta { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; font-size: .8rem; opacity: .85; }
.ywi-meta-icon { width: 14px; height: 14px; vertical-align: -2px; color: currentColor; margin-right: 1px; }
.ywi-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ywi-group-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px; transition: transform .18s ease, box-shadow .18s ease; }
.ywi-group-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(92, 54, 72, .1); }
.ywi-group-card h4 { font-size: 1rem; margin-bottom: 4px; }
.ywi-group-card p { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.ywi-group-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.ywi-group-count { font-size: .76rem; font-weight: 800; color: var(--sage); }
.ywi-ritual-banner { margin: 36px 0; }
.ywi-ritual-inner { background: var(--blush); border-radius: 22px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ywi-ritual-inner h5 { font-size: 1.05rem; } .ywi-ritual-inner p { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* ===== Onboarding ===== */
.ywi-onboard-wrap { max-width: 640px; }
.ywi-onboard-error { background: #FBEAEA; border: 1px solid #E7B7B7; color: #8a3a3a; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .88rem; font-weight: 700; }
.ywi-bloom-progress { display: flex; justify-content: center; gap: 18px; margin-bottom: 30px; }
.ywi-bloom-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ywi-bloom-flower { width: 28px; height: 28px; opacity: .3; transform: scale(.8); transition: all .4s cubic-bezier(.34,1.56,.64,1); }
.ywi-bloom-flower.done { opacity: 1; transform: scale(1); }
.ywi-bloom-flower.current { opacity: .85; }
.ywi-bloom-label { font-size: .68rem; color: var(--muted); font-weight: 700; }
.ywi-onboard-step { display: none; }
.ywi-onboard-step.active { display: block; }
.ywi-onboard-eyebrow { font-family: var(--font-script); font-size: 1.25rem; color: var(--rose-deep); }
.ywi-onboard-title { font-size: clamp(1.5rem, 4vw, 2rem); margin: 4px 0 8px; }
.ywi-onboard-sub { color: var(--muted); margin-bottom: 22px; line-height: 1.55; }
.ywi-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.ywi-pick-card { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 18px 16px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; }
.ywi-pick-card.selected { border-color: var(--rose-deep); background: var(--blush); }
.ywi-pick-icon { font-size: 1.6rem; }
.ywi-pick-icon svg { width: 26px; height: 26px; color: var(--rose-deep); display: block; }
.ywi-pick-card.selected .ywi-pick-icon svg { color: var(--berry); }
.ywi-pick-text h4 { font-family: var(--font-body); font-weight: 800; font-size: .95rem; margin-bottom: 2px; }
.ywi-pick-text p { font-size: .82rem; color: var(--muted); }
.ywi-check-badge { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: transparent; flex-shrink: 0; }
.ywi-pick-card.selected .ywi-check-badge { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }
.ywi-mood-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ywi-mood-chip { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .88rem; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); cursor: pointer; color: var(--berry); }
.ywi-mood-chip svg { width: 16px; height: 16px; color: var(--rose-deep); flex-shrink: 0; }
.ywi-mood-chip.selected { border-color: var(--sage); background: var(--sage-light); }
.ywi-mood-chip.selected svg { color: var(--sage-deep); }
.ywi-intention-input { width: 100%; font-family: var(--font-body); font-size: .95rem; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; resize: vertical; min-height: 90px; color: var(--berry); background: var(--white); margin-bottom: 10px; }
.ywi-short-input { min-height: unset; margin-bottom: 12px; }
.ywi-signup-fields { margin: 18px 0; }
.ywi-onboard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ywi-summary-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 24px; }
.ywi-summary-card h4 { font-size: 1rem; margin-bottom: 8px; }
.ywi-summary-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ywi-summary-pill { background: var(--blush); color: var(--rose-deep); font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 999px; }

@media (max-width: 560px) {
	.ywi-meetup-card { flex-direction: column; align-items: flex-start; }
}
