/* Meals & Recipes, redesigned (Oct 30). Loaded after faith-redesign.css. */

.mr-coral { color: #b8441b !important; }
.mr-navy, .mr-gold, .mr-light, .mr-blue, .mr-white, .mr-ghost { border-radius: 999px; font: 700 15px 'DM Sans', sans-serif; padding: 0 22px; min-height: 48px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; text-decoration: none; }
.mr-navy { background: #0f3554 !important; color: #fff !important; }
.mr-gold { background: #ebc35f !important; color: #0f3554 !important; }
.mr-blue { background: #0a60a2 !important; color: #fff !important; }
.mr-white { background: #fff !important; color: #0f3554 !important; }
.mr-light { background: #fff !important; color: #0f3554 !important; border: 1.5px solid #d6dde4 !important; }
.mr-ghost { background: transparent !important; color: #fff !important; border: 1.5px solid #6f8fad !important; }
.mr-gold svg, .mr-addphoto svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mr-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mr-round { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #d6dde4; background: #fff; color: #0f3554; font: 700 18px 'DM Sans', sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mr-h2, .mr-sechead h2 { font: 400 30px/1.15 'Young Serif', Georgia, serif; margin: 0; }
.mr-sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.mr-sechead > div > span, .mr-sechead > span { font-size: 15px; color: #4a4f57; }
.mr-sechead h3 { font: 400 24px 'Young Serif', Georgia, serif; margin: 0; }
.mr-none { color: #4a4f57; font-size: 15px; }

.mr-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 24px; }
.mr-tabs { display: flex; gap: 4px; background: #f1eadd; padding: 5px; border-radius: 999px; }
.mr-tabs button { border: 0; border-radius: 999px; background: transparent; color: #0f3554; font: 700 15px 'DM Sans', sans-serif; padding: 0 20px; min-height: 44px; cursor: pointer; }
.mr-tabs button.on { background: #0f3554; color: #fff; }

/* Tonight */
#content .mr-hero { padding: 0; overflow: hidden; display: flex; flex-wrap: wrap; border: 0; border-radius: 30px; margin-bottom: 30px; }
.mr-hero-photo { flex: 1 1 420px; min-height: 360px; position: relative; }
.mr-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mr-hero-text { flex: 1 1 380px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.mr-hero h2 { font: 400 clamp(30px, 3.4vw, 40px)/1.08 'Young Serif', Georgia, serif; margin: 0; }
.mr-hero-empty .mr-hero-text { flex-basis: 100%; }
.mr-hero-text p { margin: 0; font-size: 16px; color: #4a4f57; line-height: 1.55; }
.mr-sub { font-size: 15px; color: #4a4f57; }
.mr-cooks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.mr-faces { display: flex; }
.mr-faces .avatar { width: 36px; height: 36px; box-shadow: 0 0 0 2px #fff; }
.mr-faces .avatar + .avatar { margin-left: -10px; }
.mr-ask { background: #0f3554; color: #fff; border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.mr-ask .eyebrow { color: #ebc35f !important; }
.mr-ask p { margin: 0; font: 400 20px/1.4 'Young Serif', Georgia, serif; color: #fff !important; }
.mr-hero .mr-actions { margin-top: auto; }
.mr-tile { display: flex; align-items: flex-end; padding: 12px; box-sizing: border-box; }
.mr-addphoto { border: 0; border-radius: 999px; background: rgba(255,255,255,.9); color: #0f3554; font: 700 13px 'DM Sans', sans-serif; padding: 0 12px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* The week */
.mr-week { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.mr-weeknav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mr-days { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 10px; overflow-x: auto; padding: 3px; }
.mr-day { text-align: left; border: 0; border-radius: 18px; background: #fff; overflow: hidden; padding: 0; display: flex; flex-direction: column; font: inherit; color: #2e3238; cursor: pointer; min-height: 196px; }
.mr-day.today { box-shadow: 0 0 0 3px #0f3554; }
.mr-day-img { width: 100%; height: 86px; object-fit: cover; display: block; flex: none; }
.mr-day .mr-tile { height: 86px; flex: none; }
.mr-day-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.mr-day-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #6a6f77; }
.mr-day.today .mr-day-label { color: #b8441b; }
.mr-day-title { font: 400 16px/1.25 'Young Serif', Georgia, serif; }
.mr-day-meta { font-size: 12.5px; color: #5b6068; }
.mr-day-open { background: transparent; border: 1.5px dashed #d3c7b2; justify-content: space-between; padding: 12px; }
.mr-day-empty { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #4a4f57; }
.mr-day-empty b { color: #0a60a2; }
.mr-pair { display: flex; flex-wrap: wrap; gap: 20px; }
#content .mr-grocard { flex: 1 1 340px; padding: 26px; display: flex; flex-direction: column; gap: 14px; border-radius: 26px; }
.mr-grocard p { margin: 0; font-size: 15px; line-height: 1.5; color: #4a4f57; }
.mr-grocard .mr-navy { align-self: flex-start; }
.mr-bar { height: 8px; border-radius: 999px; background: #efe8db; overflow: hidden; }
.mr-bar span { display: block; height: 100%; background: #299492; }
#content .mr-memory { flex: 1 1 340px; background: #f3e2bc; border: 0; border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 12px; text-align: left; font: inherit; color: #3b2e0e; cursor: pointer; }
.mr-memory .eyebrow { color: #5c4a1e !important; }
.mr-memory-text { font: 400 22px/1.35 'Young Serif', Georgia, serif; }
#content .mr-memory-empty { cursor: default; background: #fbf4e4; border: 1.5px dashed #d8c9a8; }
.mr-memory-empty p { margin: 0; font-size: 15px; line-height: 1.6; color: #4a4f57; }

/* Recipe Box */
.mr-find { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.mr-search { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #5b6068; margin: 0; }
.mr-search input { font: 400 16px 'DM Sans', sans-serif; border: 1.5px solid #e5ddcf; background: #fff; border-radius: 16px; padding: 14px 16px; margin: 0; }
.mr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-chip { border: 1.5px solid #e5ddcf; border-radius: 999px; background: #fff; color: #2e3238; font: 700 14px 'DM Sans', sans-serif; padding: 0 16px; min-height: 40px; cursor: pointer; }
.mr-chip.on { background: #0f3554; border-color: #0f3554; color: #fff; }
.mr-chip-add { color: #0a60a2; border-style: dashed; }
.mr-sec { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.mr-favs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.mr-fav { background: #fff; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.mr-fav-photo { border: 0; padding: 0; background: none; cursor: pointer; display: block; }
.mr-fav-img { width: 100%; height: 240px; object-fit: cover; display: block; }
.mr-fav-body { border: 0; background: none; text-align: left; font: inherit; color: #2e3238; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.mr-fav-title { font: 400 28px/1.15 'Young Serif', Georgia, serif; }
.mr-fav-story { font-size: 15px; line-height: 1.55; color: #4a4f57; }
.mr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mr-card { background: #fff; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.mr-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.mr-card .mr-tile { height: 140px; }
.mr-card-body { border: 0; background: none; text-align: left; font: inherit; color: #2e3238; padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.mr-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #1c6b67; }
.mr-card-title { font: 400 19px/1.25 'Young Serif', Georgia, serif; }
.mr-card-meta { font-size: 13.5px; color: #5b6068; }
.mr-card-foot { padding: 4px 8px 10px 16px; display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.mr-card-foot .textbtn { padding: 0; min-height: 40px; }
.mr-heart { width: 44px; height: 44px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mr-heart svg { width: 20px; height: 20px; fill: none; stroke: #9a8f7e; stroke-width: 2; }
.mr-heart svg.on { fill: #c2471c; stroke: #c2471c; }
.mr-import { border: 1.5px dashed #d3c7b2; border-radius: 24px; padding: 24px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.mr-import h3 { margin: 0 0 4px; font: 400 22px 'Young Serif', Georgia, serif; }
.mr-import p { margin: 0; font-size: 15px; color: #4a4f57; }

/* Recipe page */
#recipeDetail { padding: 0; width: min(640px, calc(100vw - 20px)); border-radius: 28px; overflow: auto; }
.mr-detail-photo { position: relative; height: 280px; }
.mr-detail-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mr-detail-photo .mr-tile { height: 100%; }
.mr-detail-photo .close { position: absolute; left: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92) !important; color: #0f3554 !important; border: 0; font-size: 22px; }
.mr-detail-heart { position: absolute; right: 14px; top: 14px; background: rgba(255,255,255,.92) !important; border-radius: 50%; }
.mr-detail-addphoto { position: absolute; right: 14px; bottom: 14px; }
.mr-detail-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.mr-detail-body h2 { margin: 0; font: 400 30px/1.15 'Young Serif', Georgia, serif; }
.mr-detail-body h3 { margin: 6px 0 0; font: 400 22px 'Young Serif', Georgia, serif; }
.mr-story { margin: 0; font-size: 15px; line-height: 1.55; color: #4a4f57; }
.mr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-pills > * { background: #f6eedf; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; color: #2e3238; text-decoration: none; }
.mr-ingh { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #eee6d8; padding-top: 12px; }
.mr-serves { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.mr-serves span { min-width: 74px; text-align: center; }
.mr-ings { list-style: none; margin: 0; padding: 0; }
.mr-ings li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0e9dd; font-size: 15.5px; }
.mr-ings .got { color: #8a8f96; text-decoration: line-through; }
.mr-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; line-height: 1.55; }
.mr-notes { background: #f3e2bc; border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 1.5; color: #3b2e0e; }
.mr-detail-body > .textbtn { align-self: flex-start; padding: 0; }

/* Checkboxes (ingredients and groceries) */
.mr-gcheck { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid #b9b1a3; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mr-gcheck.on, .mr-gitem.done .mr-gcheck { background: #299492; border-color: #299492; }
.mr-gcheck svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Grocery list */
.mr-shop { display: flex; flex-direction: column; gap: 14px; }
.mr-storechips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
.mr-storechips .mr-chip { flex: none; white-space: nowrap; }
.mr-additem { display: flex; gap: 8px; align-items: center; background: #fff; border: 1.5px solid #e5ddcf; border-radius: 16px; padding: 5px 6px 5px 14px; margin: 0; }
.mr-additem input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px 'DM Sans', sans-serif; padding: 10px 0; margin: 0; outline-offset: 4px; }
.mr-additem .mr-navy, .mr-additem .mr-light { min-height: 42px; border-radius: 12px; padding: 0 16px; }
#content .mr-aisle { padding: 14px 18px 6px; border-radius: 22px; }
.mr-aisle h3 { margin: 0 0 4px; font: 700 13px 'DM Sans', sans-serif; letter-spacing: .12em; color: #b8441b; }
.mr-gitem { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid #f0e9dd; }
.mr-gtext { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 16px; }
.mr-gtext small { font-size: 12.5px; color: #5b6068; }
.mr-gitem.done .mr-gtext { color: #8a8f96; }
.mr-gitem.done .mr-gtext > span { text-decoration: line-through; }
.mr-gstore { flex: none; border: 0; border-radius: 999px; background: #f1eadd; color: #4a3a1e; font: 700 12px 'DM Sans', sans-serif; padding: 0 10px; min-height: 32px; cursor: pointer; }
.mr-gstore.none { background: transparent; border: 1.5px dashed #d3c7b2; color: #0a60a2; }

/* Sheets */
.mr-sheet { border: 0; border-radius: 28px; padding: 24px; width: min(460px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow: auto; }
.mr-sheet::backdrop { background: rgba(15,53,84,.5); }
.mr-sheet .close { position: absolute; right: 14px; top: 12px; }
.mr-sheet h2 { margin: 6px 40px 10px 0; font: 400 26px/1.2 'Young Serif', Georgia, serif; }
.mr-sheet h3 { margin: 6px 0 10px; font: 700 15px 'DM Sans', sans-serif; }
.mr-sheet > .mr-navy { width: 100%; margin-top: 14px; }
.mr-radios { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mr-radios button { display: flex; align-items: center; gap: 12px; border: 1.5px solid #e5ddcf; border-radius: 16px; background: #fff; padding: 0 14px; min-height: 52px; font: 500 16px 'DM Sans', sans-serif; color: #2e3238; text-align: left; cursor: pointer; }
.mr-radios button span { flex: 1; }
.mr-radios button small { font-size: 13px; color: #5b6068; }
.mr-radios i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9b1a3; box-sizing: border-box; flex: none; }
.mr-radios button.on { border: 2px solid #0f3554; background: #f4f7fa; font-weight: 700; color: #0f3554; }
.mr-radios button.on i { border: 7px solid #0f3554; }
.mr-remember { display: flex; gap: 12px; align-items: flex-start; background: #fbf7f0; border-radius: 16px; padding: 14px; font-size: 15px; line-height: 1.45; margin-top: 12px; }
.mr-remember input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: #0f3554; }
.mr-who { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-who button { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #e5ddcf; background: #fff; border-radius: 999px; padding: 4px 14px 4px 4px; font: 700 15px 'DM Sans', sans-serif; min-height: 46px; cursor: pointer; color: #2e3238; }
.mr-who button.on { border-color: #0f3554; box-shadow: 0 0 0 2px #0f3554 inset; }
.mr-who .avatar { width: 34px; height: 34px; }
.mr-storelist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mr-storelist span { display: inline-flex; align-items: center; gap: 4px; background: #f1eadd; border-radius: 999px; padding: 4px 4px 4px 14px; font-weight: 700; font-size: 14px; }
.mr-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 16px; }

/* Cooking mode */
.mr-cook { border: 0; padding: 22px; width: min(560px, 100vw); height: min(860px, 100vh); max-height: 100vh; max-width: 100vw; box-sizing: border-box; border-radius: 28px; background: #0f3554; color: #fff; }
.mr-cook[open] { display: flex; flex-direction: column; gap: 10px; }
.mr-cook::backdrop { background: rgba(15,53,84,.7); }
.mr-cook .eyebrow { color: #ebc35f !important; }
.mr-cook-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #c9d6e3; }
.mr-cook-done { border: 0; background: transparent; color: #fff; font: 700 15px 'DM Sans', sans-serif; min-height: 44px; cursor: pointer; padding: 0; }
.mr-cook-dots { display: flex; gap: 6px; }
.mr-cook-dots span { flex: 1; height: 5px; border-radius: 999px; background: #2e5677; }
.mr-cook-dots span.on { background: #ebc35f; }
.mr-cook-body { flex: 1; display: flex; flex-direction: column; gap: 18px; padding-top: 22px; overflow: auto; }
.mr-cook-step { font-size: 15px; font-weight: 700; color: #c9d6e3; }
.mr-cook-text { margin: 0; font: 400 clamp(24px, 6vw, 32px)/1.4 'Young Serif', Georgia, serif; color: #fff; }
.mr-cook-body h2 { margin: 0; font: 400 38px/1.1 'Young Serif', Georgia, serif; color: #fff; }
.mr-cook-body p { margin: 0; font-size: 16px; line-height: 1.5; color: #d6e1ec; }
.mr-cook-body small { color: #c9d6e3; font-size: 14px; }
.mr-cook-body .mr-gold { align-self: flex-start; }
.mr-cook-nav { display: flex; gap: 10px; }
.mr-cook-nav .mr-white { flex: 1; min-height: 56px; font-size: 17px; }
.mr-cook-nav .mr-ghost { min-height: 56px; }
.mr-cook-nav button:disabled { opacity: .4; }

@media (max-width: 760px) {
  #content .mr-hero { border-radius: 26px; }
  .mr-hero-photo { min-height: 220px; flex-basis: 100%; }
  .mr-hero-text { padding: 20px; }
  .mr-days { grid-template-columns: repeat(7, 132px); }
  .mr-actions > .mr-navy, .mr-actions > .mr-gold { flex: 1 1 auto; }
  .mr-tabs { width: 100%; }
  .mr-tabs button { flex: 1; padding: 0 8px; font-size: 14px; }
  .mr-detail-photo { height: 230px; }
  .mr-cook { border-radius: 0; height: 100vh; }
  .mr-fav-img { height: 200px; }
}

/* Items without a store yet, shown under a store's list */
.mr-unsorted { border-style: dashed; background: transparent; }
.mr-unsorted-note { margin: -4px 0 8px; font-size: 14px; color: var(--muted, #5B6068); }

/* Cooking mode stays dark in every look (the looks restyle all dialogs) */
html dialog.mr-cook { background: #0f3554 !important; color: #fff !important; border: 0 !important; }

/* A favorite without a photo gets a short color band, not a big empty block */
.mr-fav-photo .mr-tile { height: 90px !important; min-height: 0 !important; }

/* Add a recipe: a link first, then paste or type */
.mr-addlink { display: flex; flex-direction: column; gap: 8px; background: #fbf7f0; border-radius: 18px; padding: 16px; }
.mr-addlink label { font-weight: 700; font-size: 15px; }
.mr-addlink div { display: flex; gap: 8px; }
.mr-addlink input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid #e5ddcf; border-radius: 14px; padding: 0 14px; font: 16px 'DM Sans', sans-serif; background: #fff; }
.mr-addlink p { margin: 0; font-size: 14px; line-height: 1.45; color: #5b6068; }
.mr-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: #5b6068; font-size: 14px; }
.mr-or::before, .mr-or::after { content: ''; flex: 1; height: 1px; background: #e5ddcf; }
.mr-addopt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1.5px solid #e5ddcf; border-radius: 18px; background: #fff; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; font: inherit; color: #2e3238; min-height: 64px; }
.mr-addopt:hover { border-color: #0f3554; }
.mr-addopt svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #0f3554; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mr-addopt span { display: flex; flex-direction: column; gap: 2px; }
.mr-addopt b { font-size: 16px; }
.mr-addopt small { font-size: 14px; color: #5b6068; }
@media (max-width: 520px) { .mr-addlink div { flex-direction: column; } }

/* Back to the Add a Recipe choices */
.modal-top.mr-has-back .eyebrow { display: none; }
.mr-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0 8px 0 0; min-height: 44px; font: 700 15px 'DM Sans', sans-serif; color: #0a60a2; cursor: pointer; }
.mr-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.mr-paste-only .import-link, .mr-paste-only .import-or { display: none !important; }
