/* ===== Accounts, wizard, settings, filters, collections, notes, kosher notes ===== */

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--barn-red); color: #fff; padding: .5rem 1rem; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2.5px solid var(--wheat-dark); outline-offset: 2px; }

.btn-block { display: block; width: 100%; text-align: center; }
.btn-link { background: none; border: none; padding: .25rem 0; color: var(--rose-dark); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--barn-red); }
.btn-link.danger { color: var(--barn-red); }
.form-hint { font-size: .8rem; color: var(--text-muted); margin: .35rem 0 0; line-height: 1.45; }
.muted { color: var(--text-muted); }
label .form-hint { text-transform: none; letter-spacing: normal; font-weight: 400; }
.form-input-sm { padding: .35rem .6rem; font-size: .85rem; width: auto; }
.grow { flex: 1 1 14rem; }

.flash { padding: .75rem 1rem; border-radius: 10px; margin: 0 0 1rem; font-size: .92rem; border: 1px solid; line-height: 1.45; }
.flash a { color: inherit; font-weight: 700; }
.flash-ok    { background: #f7f2ed; border-color: #b9cbb0; color: #3e5435; }
.flash-error { background: #f9eeea; border-color: #e3b4ad; color: #7d2a1c; }
.flash-info  { background: #f8f0dc; border-color: #e8dccd; color: #6b5020; }
.page-flash { max-width: 1240px; margin: 1rem auto 0; }

/* ── Header additions ───────────────────────────────────────── */
.nav-link { color: inherit; text-decoration: none; font-weight: 700; font-size: .88rem; padding: .35rem .5rem; border-radius: 8px; white-space: nowrap; }
.nav-link:hover { background: rgba(255,255,255,.15); }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .5rem .2rem .2rem; border-radius: 999px; }
.account-btn:hover { background: rgba(255,255,255,.15); }
.account-name { font-weight: 700; font-size: .88rem; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-avatar { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--wheat); color: var(--brown); font-weight: 700; font-family: var(--font-serif); flex: none; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + .4rem); background: var(--warm-white); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px var(--shadow); min-width: 13rem; padding: .4rem; z-index: 50; display: flex; flex-direction: column; }
.account-dropdown a, .account-dropdown button { display: block; text-align: left; padding: .55rem .75rem; border-radius: 8px; color: var(--text); text-decoration: none; background: none; border: none; font: inherit; font-size: .9rem; cursor: pointer; width: 100%; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--cream); }
.account-diets { display: flex; flex-wrap: wrap; gap: .3rem; padding: .4rem .6rem .5rem; margin: 0; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.diet-pill { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: #f7f2ed; color: var(--sage-dark); }

/* ── Auth ───────────────────────────────────────────────────── */
.auth-wrap { display: grid; place-items: center; padding: 3rem 1rem 4rem; }
.auth-card { width: 100%; max-width: 26rem; background: var(--warm-white); border: 1px solid var(--border); border-radius: 18px; padding: 2rem 1.75rem; box-shadow: 0 8px 30px var(--shadow); }
.auth-title { font-family: var(--font-serif); font-size: 2rem; margin: 0 0 .3rem; color: var(--barn-red); }
.auth-sub { color: var(--text-muted); margin: 0 0 1.4rem; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form .form-label { display: flex; flex-direction: column; gap: .35rem; }
.auth-switch { text-align: center; margin: 1.25rem 0 0; font-size: .9rem; color: var(--text-muted); }

/* ── Wizard ─────────────────────────────────────────────────── */
.wizard-wrap { padding: 2.5rem 1rem 4rem; display: grid; place-items: start center; }
.wizard { width: 100%; max-width: 40rem; background: var(--warm-white); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; box-shadow: 0 10px 34px var(--shadow); }
.wizard-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--wheat-dark); margin: 0; }
.wizard-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .2rem 0 1rem; color: var(--barn-red); }
.wizard-progress { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: step; }
.wizard-progress li { flex: 1; font-size: .78rem; font-weight: 700; color: var(--text-muted); padding-top: .5rem; border-top: 4px solid var(--border); counter-increment: step; }
.wizard-progress li::before { content: counter(step) ". "; }
.wizard-progress li.active { color: var(--barn-red); border-color: var(--barn-red); }
.wizard-progress li.done { color: var(--sage-dark); border-color: var(--sage); }
.wizard-step-title { font-family: var(--font-serif); font-size: 1.35rem; margin: 0 0 .4rem; }
.wizard-step .form-label { display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; font-weight: 700; }
.zip-input-lg { font-size: 1.4rem; letter-spacing: .15em; max-width: 10rem; padding: .6rem .8rem; }
.wizard-nav { display: flex; align-items: center; gap: .75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.wizard-spacer { flex: 1; }
.wizard-dontshow { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; color: var(--text-muted); margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--border); }

/* ── Preference fields (wizard + settings) ──────────────────── */
.pref-group { border: none; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.pref-legend { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; padding: 0; margin-bottom: .2rem; }
.check-card { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; margin-top: .65rem; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.check-card:hover { border-color: var(--dusty-rose); }
.check-card:has(input:checked) { border-color: var(--sage-dark); background: #faf6f2; }
.check-card input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--sage-dark); flex: none; }
.check-card span { display: flex; flex-direction: column; gap: .2rem; }
.check-card small { color: var(--text-muted); font-size: .82rem; line-height: 1.4; }
.check-card-sm { padding: .65rem .85rem; }
.reveal-box { margin: .6rem 0 0 1.6rem; padding: .9rem 1rem; border-left: 3px solid var(--wheat); background: #faf6f1; border-radius: 0 10px 10px 0; }
.reveal-nested { margin-left: 1rem; }
.reveal-intro { font-size: .86rem; margin: 0 0 .8rem; line-height: 1.5; }
.radio-q { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.radio-q-label { width: 100%; margin: 0 0 .1rem; font-weight: 700; font-size: .9rem; }
.radio-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; font-size: .86rem; cursor: pointer; }
.radio-pill:has(input:checked) { border-color: var(--sage-dark); background: #faf6f2; font-weight: 700; }
.radio-pill input { accent-color: var(--sage-dark); }
.check-row { display: flex; gap: .55rem; align-items: center; font-size: .9rem; margin: .5rem 0 0; }

.chip-input { margin-top: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 .5rem; }
.chip { display: inline-flex; align-items: center; gap: .2rem; padding: .25rem .3rem .25rem .7rem; background: var(--cream); border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; }
.chip-x { border: none; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 .35rem; color: var(--text-muted); border-radius: 50%; }
.chip-x:hover { color: var(--barn-red); background: #fff; }

/* ── Settings ───────────────────────────────────────────────── */
.settings-wrap { max-width: 44rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.settings-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; margin-top: 1.25rem; }
.settings-heading { font-family: var(--font-serif); font-size: 1.5rem; margin: 0 0 1rem; color: var(--barn-red); }
.settings-sub { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.settings-card > .form-label { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.25rem; font-weight: 700; }
.settings-actions { margin-top: 1.25rem; }
.settings-inline { margin: .75rem 0 0; }
.inline-form { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin: .75rem 0; }
.inline-form .form-label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; }
.member-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.member-list li { display: flex; align-items: center; gap: .6rem; }
.invite-box { margin: 1.25rem 0; padding: 1rem; background: #faf6f1; border: 1px dashed var(--wheat); border-radius: 12px; font-size: .9rem; }
.invite-box p { margin: 0 0 .6rem; }
.invite-code-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.invite-code { font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; background: #fff; padding: .3rem .7rem; border-radius: 8px; border: 1px solid var(--border); }

/* ── Index: filters, recently viewed, cards ─────────────────── */
.filter-bar { display: flex; flex-direction: column; gap: .6rem; margin: 0 0 1.25rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-chip { position: relative; cursor: pointer; }
.filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chip span { display: inline-block; padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--warm-white); font-size: .82rem; font-weight: 700; color: var(--text-muted); transition: all .15s; }
.filter-chip:hover span { border-color: var(--dusty-rose); }
.filter-chip input:checked + span { background: var(--barn-red); border-color: var(--barn-red); color: #fff; }
.filter-chip input:focus-visible + span { outline: 2.5px solid var(--wheat-dark); outline-offset: 2px; }
.filter-selects { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-selects .fav-filter-btn { text-decoration: none; }

.recent-strip { margin: 0 0 1.5rem; }
.strip-heading { font-family: var(--font-serif); font-size: 1.1rem; margin: 0 0 .6rem; }
.recent-row { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; }
.recent-item { flex: 0 0 8.5rem; scroll-snap-align: start; text-decoration: none; color: var(--text); font-size: .8rem; font-weight: 700; line-height: 1.3; }
.recent-item img, .recent-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: var(--cream); margin-bottom: .35rem; font-size: 1.6rem; }
.recent-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-swap { color: var(--sage-dark); font-weight: 700; }
.card-with-remove { display: flex; flex-direction: column; }
.card-remove { text-align: right; margin-top: .25rem; }
.signup-pitch p { font-size: .88rem; line-height: 1.5; margin: 0 0 1rem; }
details.sidebar-card > summary { cursor: pointer; list-style: none; }
details.sidebar-card > summary::after { content: " ▾"; color: var(--text-muted); }
details.sidebar-card[open] > summary::after { content: " ▴"; }
.scrape-form .form-input[type=url] { width: 100%; margin-bottom: .5rem; }

/* ── Recipe page ────────────────────────────────────────────── */
.recipe-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.unit-toggle { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--warm-white); }
.unit-toggle button { border: none; background: none; padding: .4rem .85rem; font: inherit; font-size: .8rem; font-weight: 700; color: var(--text-muted); cursor: pointer; min-height: 36px; }
.unit-toggle button + button { border-left: 1.5px solid var(--border); }
.unit-toggle button.active { background: var(--sage-dark); color: #fff; }
.collect-menu { position: relative; }
.collect-menu > summary { list-style: none; cursor: pointer; }
.collect-menu > summary::-webkit-details-marker { display: none; }
.collect-dropdown { position: absolute; left: 0; top: calc(100% + .4rem); z-index: 40; min-width: 16rem; background: var(--warm-white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px var(--shadow); padding: .6rem; }
.collect-row { display: flex; gap: .5rem; align-items: center; padding: .4rem .3rem; border-radius: 6px; font-size: .9rem; cursor: pointer; }
.collect-row:hover { background: var(--cream); }
.collect-new { display: flex; gap: .4rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.collect-new .form-input { flex: 1; min-width: 0; }

.kosher-note { margin: 1.25rem 0 0; padding: 1rem 1.2rem; border-radius: 12px; background: #faf6f2; border: 1px solid #c8d6bf; font-size: .9rem; line-height: 1.5; }
.kosher-note strong { color: var(--sage-dark); }
.kosher-note p { margin: .25rem 0 .4rem; }
.kosher-note ul { margin: 0; padding-left: 1.1rem; }
.kosher-note s { color: var(--text-muted); }
.kfp-note { background: #faf6f1; border-color: #e8dccd; }
.kfp-note strong { color: var(--wheat-dark); }
.ingredient-item.swapped .ing-text { color: var(--sage-dark); }
.ingredient-item.swapped .ing-bullet { color: var(--sage-dark); cursor: help; }

.notes-section { margin-top: 2rem; }
.notes-box { width: 100%; box-sizing: border-box; min-height: 5.5rem; padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: 12px; font: inherit; font-size: .95rem; line-height: 1.5; background: #fffdf8; resize: vertical; }
.notes-box:focus { border-color: var(--wheat-dark); outline: none; box-shadow: 0 0 0 3px rgba(220, 200, 176,.25); }
.similar-section { margin: 2.5rem auto 0; }
.similar-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

/* ── Collections ────────────────────────────────────────────── */
.narrow-wrap { max-width: 64rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.narrow-wrap.wide { max-width: 1240px; }
.new-collection { background: var(--warm-white); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.collection-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--warm-white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.collection-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--shadow); }
.collection-cover { display: grid; aspect-ratio: 4/3; overflow: hidden; background: var(--cream); place-items: center; font-size: 2.2rem; grid-template-rows: minmax(0, 1fr); }
.collection-cover img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.collection-cover.cover-2, .collection-cover.cover-3, .collection-cover.cover-4 { grid-template-columns: 1fr 1fr; gap: 2px; }
.collection-cover.cover-3, .collection-cover.cover-4 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.collection-cover.cover-3 img:first-child { grid-row: span 2; }
.collection-info { padding: .8rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.collection-info strong { font-family: var(--font-serif); font-size: 1.1rem; }
.collection-info span { font-size: .8rem; color: var(--text-muted); }
.collection-menu { position: relative; margin-left: auto; }
.collection-menu > summary { list-style: none; }
.collection-menu-body { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 40; background: var(--warm-white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px var(--shadow); padding: .75rem; min-width: 16rem; }
.list-item-by { display: block; font-size: .72rem; color: var(--text-muted); }

@media (max-width: 700px) {
  .site-header { position: static; }
  .header-inner { padding: .6rem 1rem; gap: .6rem; }
  .logo-sub { display: none; }
  .header-nav { gap: .4rem; }
  .header-nav .search-form { order: 10; width: 100%; }
  .header-nav .menus-nav-link, .header-nav .cart-link, .header-nav .nav-link { padding: .3rem .55rem; font-size: .82rem; }
  .weather-badge .weather-loc { display: none; }
  .account-menu { margin-left: auto; }
  .account-name { display: none; }
  .wizard { padding: 1.4rem 1.1rem; }
  .reveal-box { margin-left: .4rem; }
  .filter-selects select { flex: 1 1 45%; }
  .collect-dropdown { left: auto; right: 0; }
}

/* ── Diet groups, allergy picker, allergen markers ──────────── */
.pref-subhead { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wheat-dark); margin: 1.4rem 0 0; font-weight: 700; }
.reveal-box .check-row { margin: .35rem 0; }

.allergy-picker { margin-top: .75rem; }
.ap-quick { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.ap-quick .ap-count { margin: 0 0 0 auto; }
.ap-tree, .ap-children { list-style: none; margin: 0; padding: 0; }
.ap-tree { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.ap-tree > .ap-node + .ap-node { border-top: 1px solid var(--border); }
.ap-row { display: flex; align-items: center; gap: .4rem; padding: .45rem .75rem; min-height: 40px; }
.ap-children { padding: 0 0 .4rem 1.6rem; border-left: 2px solid var(--cream); margin-left: 1.05rem; }
.ap-children .ap-row { padding: .2rem .5rem; min-height: 34px; }
.ap-check { display: flex; align-items: center; gap: .55rem; flex: 1; cursor: pointer; font-size: .92rem; }
.ap-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--barn-red); flex: none; }
.depth-0 > .ap-row .ap-label { font-weight: 700; }
.ap-check.covered { color: var(--text-muted); }
.ap-info-btn, .ap-expand { border: none; background: none; cursor: pointer; font: inherit; color: var(--text-muted); border-radius: 6px; }
.ap-info-btn { font-size: 1rem; padding: .1rem .35rem; }
.ap-expand { font-size: .78rem; font-weight: 700; padding: .3rem .5rem; white-space: nowrap; }
.ap-expand:hover, .ap-info-btn:hover { background: var(--cream); color: var(--text); }
.ap-expand.has-picked { color: var(--barn-red); }
.ap-info { margin: -.2rem .9rem .5rem 2.4rem; }
.ap-disclaimer { margin-top: .6rem; }
.allergy-picker.compact .ap-tree { max-height: 22rem; overflow-y: auto; }

.avoid-filter { border: 1px dashed var(--border); border-radius: 12px; padding: .5rem .8rem; background: var(--warm-white); }
.avoid-filter[open] { border-style: solid; }
.avoid-filter > summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--text-muted); list-style: none; }
.avoid-filter > summary::-webkit-details-marker { display: none; }
.avoid-filter > summary strong { color: var(--barn-red); margin-left: .3rem; }
.avoid-body { padding-top: .5rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.avoid-body .allergy-picker { width: 100%; }

.allergen-dot { display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; margin-left: .35rem; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--wheat-dark); background: #fff8e8; color: var(--wheat-dark);
  font-size: .65rem; font-weight: 900; line-height: 1; cursor: pointer; vertical-align: middle; flex: none; position: relative; }
.allergen-dot::after { content: ""; position: absolute; inset: -10px; }
.allergen-dot:hover { background: var(--wheat); color: #fff; }
.allergen-dot.mine { border-color: var(--barn-red); background: var(--barn-red); color: #fff; }

.allergen-modal { border: none; border-radius: 16px; padding: 0; max-width: min(26rem, calc(100vw - 2rem)); width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); background: var(--warm-white); color: var(--text); }
.allergen-modal::backdrop { background: rgba(60, 48, 40, .45); }
.allergen-modal-inner { padding: 1.1rem 1.25rem 1.25rem; margin: 0; }
.allergen-modal-head { display: flex; align-items: center; justify-content: space-between; }
.allergen-modal-head h2 { font-family: var(--font-serif); font-size: 1.3rem; margin: 0; color: var(--barn-red); }
.allergen-modal-x { border: none; background: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); padding: .1rem .5rem; border-radius: 8px; }
.allergen-modal-x:hover { background: var(--cream); }
.allergen-modal-line { font-style: italic; color: var(--text-muted); margin: .4rem 0 .8rem; }
.allergen-modal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.allergen-modal-list li { display: flex; flex-direction: column; gap: .2rem; padding: .6rem .75rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.allergen-info { font-size: .85rem; line-height: 1.45; }
.allergen-mine { display: inline-block; font-size: .7rem; font-weight: 700; color: #fff; background: var(--barn-red); border-radius: 999px; padding: .05rem .5rem; width: max-content; }

.swap-list { display: flex; flex-direction: column; gap: .35rem; }
.swap-diets { display: inline-flex; gap: .25rem; margin-left: .35rem; flex-wrap: wrap; vertical-align: middle; }
.swap-diets .diet-pill { font-size: .66rem; padding: .05rem .4rem; }
.swap-note { font-weight: 700; color: var(--sage-dark); }
.smart-search-link { align-self: center; font-size: .8rem; font-weight: 700; color: inherit; text-decoration: none; padding: .35rem .6rem; border-radius: 999px; white-space: nowrap; }
.smart-search-link:hover { background: rgba(255,255,255,.15); }
@media (max-width: 700px) {
  .header-nav .search-form .search-input { flex: 1 1 auto; min-width: 0; width: auto; }
  .smart-search-link { padding: .35rem .4rem; }
}

/* ── Browse ─────────────────────────────────────────────────── */
.browse-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.browse-all { font-size: .8rem; font-weight: 700; color: var(--rose-dark); text-decoration: none; }
.browse-group-mini { border-top: 1px solid var(--border); padding: .35rem 0; }
.browse-group-mini:first-of-type { border-top: none; }
.browse-group-mini > summary { cursor: pointer; font-weight: 700; font-size: .85rem; padding: .3rem 0; list-style: none; display: flex; justify-content: space-between; }
.browse-group-mini > summary::-webkit-details-marker { display: none; }
.browse-group-mini > summary::after { content: "▸"; color: var(--text-muted); }
.browse-group-mini[open] > summary::after { content: "▾"; }
.browse-group-mini .cat-list { max-height: 16rem; overflow-y: auto; padding-bottom: .3rem; }
.active-tags { margin-bottom: .1rem; }
.active-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px;
  background: var(--sage-dark); color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.active-tag:hover { background: var(--barn-red); }
.recipe-browse-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1.5rem; }
.recipe-browse-tags .form-hint { margin: 0 .2rem 0 0; }

.browse-jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1.5rem; }
.browse-jump a { padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--warm-white);
  font-size: .82rem; font-weight: 700; color: var(--text-muted); text-decoration: none; }
.browse-jump a:hover { border-color: var(--dusty-rose); color: var(--rose-dark); }
.browse-group { margin-bottom: 2.25rem; scroll-margin-top: 1rem; }
.browse-group-title { font-family: var(--font-serif); font-size: 1.5rem; margin: 0 0 .8rem; color: var(--barn-red); }
.browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: .8rem; }
.browse-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--warm-white);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.browse-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--shadow); }
.browse-tile-img { position: relative; display: grid; place-items: center; aspect-ratio: 16/10; background: var(--cream); overflow: hidden; }
.browse-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.browse-tile-icon { position: relative; font-size: 1.6rem; }
.browse-tile-img img + .browse-tile-icon { position: absolute; left: .45rem; bottom: .4rem; font-size: 1.1rem;
  background: rgba(255,255,255,.9); border-radius: 999px; width: 2rem; height: 2rem; display: grid; place-items: center; }
.browse-tile-text { padding: .55rem .75rem .7rem; display: flex; flex-direction: column; gap: .1rem; }
.browse-tile-text strong { font-size: .95rem; }
.browse-tile-text span { font-size: .75rem; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .browse-tile, .collection-card { transition: none; } .browse-tile:hover { transform: none; } }

/* ── Terms of Service ─────────────────────────────────────────────────────── */
.tos-agree { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; line-height: 1.45; color: var(--text-muted); }
.tos-agree input { margin-top: .2rem; flex-shrink: 0; }
.legal-wrap { padding: 2.5rem 1rem 4rem; }
.legal { max-width: 46rem; margin: 0 auto; background: var(--warm-white); border: 1px solid var(--border); border-radius: 18px; padding: 2rem 1.75rem; box-shadow: 0 8px 30px var(--shadow); line-height: 1.65; }
.legal-title { font-family: var(--font-serif); color: var(--barn-red); font-size: 2.2rem; margin: 0 0 .25rem; }
.legal-updated { color: var(--text-muted); font-size: .85rem; margin: 0 0 1.5rem; }
.legal h2 { font-family: var(--font-serif); color: var(--brown); font-size: 1.25rem; margin: 1.75rem 0 .5rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal-callout { background: var(--cream); border-left: 4px solid var(--wheat); border-radius: 8px; padding: 1rem 1.1rem; }
.footer-link { color: inherit; }

/* ── Dishes: one food, many versions ──────────────────────────────────────── */
.card-versions { align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--rose-dark); background: var(--cream); border: 1px solid var(--dusty-rose); border-radius: 999px; padding: .1rem .55rem; cursor: pointer; }
.card-versions:hover, .card-versions:focus-visible { background: var(--dusty-rose); color: #fff; outline: none; }
.dish-banner { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; background: var(--warm-white); border: 1px solid var(--border); border-left: 4px solid var(--wheat); border-radius: 10px; padding: .7rem 1rem; margin: 0 0 1.25rem; font-size: .92rem; }
.dish-banner a { font-weight: 700; white-space: nowrap; }
.dish-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.dish-head { margin: .5rem 0 1.5rem; }
.dish-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--sage-dark); margin: 0; }
.dish-title { font-family: var(--font-serif); color: var(--barn-red); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .2rem 0 .3rem; }
.dish-fit { color: var(--text-muted); margin: 0; font-size: .9rem; }
.dish-pick-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--warm-white); border: 2px solid var(--wheat); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px var(--shadow); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.dish-pick-card:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--shadow); color: var(--text); }
.dish-pick-img { width: 100%; height: 100%; min-height: 240px; max-height: 360px; object-fit: cover; }
.dish-pick-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; justify-content: center; }
.dish-pick-badge { align-self: flex-start; background: var(--wheat); color: var(--brown); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: .2rem .7rem; }
.dish-pick-title { font-family: var(--font-serif); font-size: 1.6rem; margin: 0; color: var(--brown); }
.dish-pick-why { margin: 0; color: var(--text-muted); line-height: 1.5; }
.dish-pick-go { align-self: flex-start; margin-top: .4rem; }
.dish-section { margin-top: 2.25rem; }
.dish-section-title { font-family: var(--font-serif); color: var(--brown); font-size: 1.35rem; margin: 0 0 .75rem; }
.dish-role { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sage-dark); }
.dish-role-note { margin: 0; font-size: .78rem; color: var(--text-muted); }
.dish-family { display: flex; flex-direction: column; gap: .4rem; }
.dish-family .recipe-card { flex: 1; }
.dish-family-more { font-size: .82rem; font-weight: 700; padding-left: .2rem; }
.dish-all { background: var(--warm-white); border: 1px solid var(--border); border-radius: 14px; padding: .25rem 1rem 1rem; }
.dish-all-summary { cursor: pointer; font-family: var(--font-serif); font-size: 1.2rem; color: var(--brown); padding: .75rem 0; }
.dish-chips { display: flex; flex-direction: column; gap: .5rem; margin: .25rem 0 1rem; }
.dish-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.dish-chip-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); min-width: 4.2rem; }
.dish-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--cream); color: var(--text); font-size: .84rem; text-decoration: none; }
.dish-chip:hover { border-color: var(--dusty-rose); color: var(--rose-dark); }
.dish-chip.active { background: var(--barn-red); border-color: var(--barn-red); color: #fff; }
.dish-chip-n { font-size: .72rem; opacity: .7; }
.dish-list-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.dish-sort { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--text-muted); }
.dish-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.dish-row { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--border); border-radius: 10px; padding: .45rem .6rem; background: #fff; }
.dish-row:hover { border-color: var(--dusty-rose); }
.dish-row-check { display: flex; padding: .3rem; cursor: pointer; }
.dish-row-check input { width: 1.1rem; height: 1.1rem; }
.dish-row-link { display: flex; gap: .75rem; align-items: center; flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.dish-row-img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.dish-row-img-empty { display: grid; place-items: center; background: var(--cream); }
.dish-row-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.dish-row-title { font-family: var(--font-serif); font-size: .98rem; }
.dish-row-pick { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; background: var(--wheat); color: var(--brown); border-radius: 999px; padding: .05rem .45rem; margin-left: .3rem; }
.dish-row-variant { font-size: .75rem; color: var(--sage-dark); font-weight: 700; }
.compare-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.compare-col { background: var(--warm-white); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.compare-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.compare-title { font-family: var(--font-serif); font-size: 1.1rem; margin: 0; }
.compare-facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; margin: 0; font-size: .88rem; }
.compare-facts dt { color: var(--text-muted); }
.compare-facts dd { margin: 0; }
.compare-unique { font-size: .85rem; background: var(--cream); border-radius: 8px; padding: .5rem .6rem; margin: 0; }
.compare-ings ul { padding-left: 1.1rem; font-size: .85rem; }
.compare-col .btn { margin-top: auto; }
.compare-note { margin-top: 1.5rem; }
@media (max-width: 720px) {
  .dish-pick-card { grid-template-columns: 1fr; }
  .dish-pick-img { min-height: 0; max-height: 240px; }
  .compare-grid { grid-template-columns: 1fr; }
  .dish-row-img { width: 52px; height: 40px; }
}
