/* Humble Housewife recipe box. Palette and type follow humblehousewife.blog:
   white pages, Cormorant Garamond + Lato, sage tag pills, blush buttons, slate logo ink. */
:root {
  --paper: #ffffff;
  --mist: #f7f6f3;
  --ink: #1d2224;
  --slate: #485458;
  --stone: #b2bcbe;
  --muted: #6b7376;
  --line: #e0dede;
  --hair: #eeeeec;
  --sage: #bcd0c5;
  --sage-soft: #e7efea;
  --sage-deep: #4b6a5a;
  --sage-ink: #2c3b33;
  --blush: #e8d7cd;
  --blush-soft: #f6eee9;
  --blush-deep: #dcc4b6;
  --error: #a33a3a;
  --warn: #8a5a14;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Lato, 'Helvetica Neue', Arial, sans-serif;
  --hand: Caveat, 'Bradley Hand', cursive;

  /* names the admin styles use */
  --card: var(--paper);
  --tab: var(--mist);
  --blue-rule: var(--hair);
  --red-rule: var(--sage);
  --green: var(--sage-deep);
  --green-deep: #3c5649;
  --ink-soft: var(--muted);
  --shadow: 0 1px 2px rgba(29, 34, 36, .05), 0 8px 24px -16px rgba(29, 34, 36, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--slate); }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; color: var(--ink); font-variant-numeric: lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.optional { font-weight: 400; color: var(--muted); font-size: 14px; }
.lead { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons: blush like the blog's */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 20px; border-radius: 6px; border: 1px solid var(--blush); background: var(--blush); color: var(--ink); font: 700 15px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blush-deep); border-color: var(--blush-deep); color: var(--ink); }
.btn-quiet { background: var(--paper); border-color: var(--line); color: var(--slate); }
.btn-quiet:hover { background: var(--paper); border-color: var(--slate); color: var(--ink); }
.btn-small { min-height: 34px; padding: 5px 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike.danger, .danger { color: var(--error); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--slate); color: #fff; font: 700 12px/20px var(--sans); text-align: center; }

/* Forms */
label { display: block; font-weight: 700; font-size: 15px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=date], input[type=number], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 16px/1.4 var(--sans);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sage-deep); outline: none; box-shadow: 0 0 0 3px var(--sage-soft); }
.form-error { color: var(--error); font-weight: 700; margin: 0 0 12px; }
.stack > * + * { margin-top: 16px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-family: var(--serif); font-weight: 700; font-size: 24px; padding: 0; margin-bottom: 8px; }

.flash { max-width: 1180px; margin: 14px auto 0; width: calc(100% - 32px); padding: 11px 16px; border-radius: 6px; background: var(--sage-soft); color: var(--sage-ink); font-weight: 700; }
.flash-error { background: #f6e3e3; color: var(--error); }

/* ---------- Masthead: centered menu, hairline, centered logo */
.masthead { position: relative; }
/* the menu sits on a see-through sage band; on the recipes page the botanical shows through it */
.nav-band { position: relative; z-index: 2; background: rgba(188, 208, 197, .55); border-bottom: 1px solid rgba(75, 106, 90, .15); }
.main-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 34px; max-width: 1180px; margin: 0 auto; padding: 13px 24px 11px; }
.main-nav a { color: var(--sage-ink); text-decoration: none; font-size: 15px; padding: 2px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current] { font-weight: 700; border-bottom-color: var(--sage-deep); }
.count-dot { display: inline-block; min-width: 19px; margin-left: 3px; padding: 0 5px; border-radius: 10px; background: var(--sage); color: var(--sage-ink); font: 700 11px/19px var(--sans); text-align: center; vertical-align: 1px; }
.brand-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 18px 24px 20px; }
.brand-left { display: flex; align-items: center; gap: 16px; }
.brand-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.brandmark { display: block; text-decoration: none; }
.brandmark img { height: 74px; width: auto; }
.brandmark.is-big img { height: 118px; }
.wordmark { font: 600 38px/1 var(--serif); letter-spacing: .14em; color: var(--slate); text-transform: uppercase; }
.quiet-link { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; }
.quiet-link:hover { color: var(--sage-deep); text-decoration: underline; }
.search-dot { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 17px; }
.search-dot:hover { border-color: var(--slate); color: var(--ink); }

/* ---------- The box page: botanical art in opposite corners, with a soft white glow behind the logo and search */
body.box, body.landing { overflow-x: hidden; }
.corner-art { position: absolute; z-index: 0; width: min(600px, 42vw); height: auto; opacity: .9; pointer-events: none; user-select: none; }
.corner-art.art-top { left: 0; top: 0; transform: rotate(180deg); }
.corner-art.art-bottom { right: 0; bottom: 0; }
body.box .corner-art { opacity: .55; }   /* the recipes page: lighter than the login page. Raise toward .9 for darker, lower for lighter. */
body.box .brand-row::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(560px, 100%); height: 100%; transform: translateX(-50%); background: radial-gradient(ellipse closest-side, #fff 60%, rgba(255,255,255,0)); }
.box-hero { position: relative; text-align: center; padding: 0 16px 34px; }
.box-hero > :not(.corner-art) { position: relative; z-index: 1; }
.box-hero::before { content: ""; position: absolute; z-index: 0; left: 50%; top: -14px; width: min(820px, 100%); height: calc(100% - 10px); transform: translateX(-50%); background: radial-gradient(ellipse closest-side, #fff 62%, rgba(255,255,255,0)); }
.box-hero::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.tags-toggle { display: none; }
.tagline { margin: -6px 0 18px; font: italic 600 21px var(--serif); color: var(--slate); }
.search { position: relative; display: block; max-width: 620px; margin: 0 auto; font-weight: 400; }
.search .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); }
.search input { margin: 0; height: 52px; padding-left: 48px; border-radius: 999px; border-color: var(--line); background: rgba(255,255,255,.96); box-shadow: 0 6px 22px -14px rgba(29,34,36,.35); }
.hero-count { margin: 10px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }

.filters { max-width: 1180px; margin: 0 auto; padding: 0 24px 6px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 6px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--slate); font: 700 14px var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--slate); }
.chip.is-on { background: var(--slate); border-color: var(--slate); color: #fff; }
.tag-chips { flex-basis: 100%; }
.sort { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; color: var(--muted); }
.sort select { margin: 0; width: auto; padding: 6px 10px; font-size: 14px; }

/* Sage tag pill, straight off the blog */
.pill-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--sage); color: var(--sage-ink); font: 700 11px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.pill-tag .ico { font-size: 12px; stroke-width: 2.2; }
button.pill-tag, a.pill-tag { cursor: pointer; }
button.pill-tag:hover, a.pill-tag:hover { background: #a9c3b6; color: var(--sage-ink); }
.pill-tag.is-on { background: var(--sage-deep); color: #fff; }

.box-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 24px 72px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 30px; }
.card { display: block; text-decoration: none; color: var(--ink); }
.card-photo { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--mist); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-photo img { transform: scale(1.03); }
.monogram { position: absolute; inset: 0; display: grid; place-items: center; font: 600 84px/1 var(--serif); color: var(--stone); }
.card-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card h3 { margin-top: 12px; font-size: 25px; line-height: 1.15; }
.card:hover h3 { color: var(--slate); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: 14px; font-style: italic; color: var(--muted); }
.meta-time { display: inline-flex; align-items: center; gap: 5px; }

.stamp { position: absolute; top: 10px; right: 10px; padding: 0 10px; border-radius: 4px; font: 600 21px/1.35 var(--hand); color: var(--slate); background: var(--blush); transform: rotate(-4deg); box-shadow: 0 2px 6px rgba(29,34,36,.12); }
.stamp-want { background: #fff; color: var(--sage-deep); }
.stamp-made { background: var(--sage-soft); }

.empty { text-align: center; padding: 56px 16px; }
.plain-list { columns: 2; padding: 24px; }

/* ---------- Recipe page */
.sheet-wrap { max-width: 1060px; margin: 0 auto; padding: 8px 24px 72px; }
.sheet-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.back { font-weight: 700; text-decoration: none; color: var(--slate); }
.back::before { content: '‹ '; }
.sheet { background: var(--paper); }
.sheet.narrow { max-width: 560px; margin: 16px auto; padding: 32px; border: 1px solid var(--line); border-radius: 8px; }
.sheet.narrow h1 { font-size: 42px; margin-bottom: 20px; }
figure.hero { position: relative; margin: 0; }
figure.hero img { width: 100%; max-height: 520px; object-fit: cover; }
figure.hero .stamp { top: 18px; right: 18px; font-size: 27px; }
.recipe-head { padding: 26px 0 24px; text-align: center; border-bottom: 1px solid var(--line); }
.recipe-head > .stamp { position: static; display: inline-block; margin-top: 12px; }
.course-link { font-size: 15px; font-style: italic; text-decoration: none; color: var(--muted); }
.recipe-head h1 { font-size: clamp(38px, 5.4vw, 60px); margin: 6px auto 0; max-width: 30ch; text-wrap: balance; }
.intro { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 14px auto 0; }
.credit { margin: 14px 0 0; font: italic 700 20px var(--serif); color: var(--sage-deep); }
.credit a { color: inherit; }
.made-on { display: block; margin-top: 2px; font: italic 400 14px var(--sans); color: var(--muted); }
.tag-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.facts div { padding: 14px 28px; text-align: center; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font: 700 19px var(--serif); font-variant-numeric: lining-nums; }
.recipe-cols { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; }
.ingredients { padding: 30px 32px 36px 0; border-right: 1px solid var(--line); }
.ingredients h2, .steps h2 { font-size: 28px; margin-bottom: 12px; }
.ingredients h2 + .equipment { margin-bottom: 24px; }
.equipment { padding-left: 18px; margin: 0; }
.ing-list { list-style: none; padding: 0; margin: 0; }
.ing-list li { padding: 7px 0; border-bottom: 1px solid var(--hair); }
.ing-list label { display: flex; gap: 10px; align-items: baseline; font-weight: 400; font-size: 16px; cursor: pointer; }
.ing-list input { flex: none; width: 17px; height: 17px; accent-color: var(--sage-deep); transform: translateY(2px); }
.ing-list input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--sage); }
.ing-group { font: 700 15px var(--sans); margin: 20px 0 2px; color: var(--slate); }
.steps { padding: 30px 0 40px 36px; }
.step-group { font-size: 23px; margin: 24px 0 8px; color: var(--slate); }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { position: relative; padding: 0 0 18px 42px; font-size: 17px; line-height: 1.65; max-width: 66ch; }
.step-list li::before { content: counter(list-item); position: absolute; left: 0; top: -3px; font: 700 26px/1.3 var(--serif); font-variant-numeric: lining-nums; color: var(--sage-deep); }
.notes { margin-top: 26px; padding: 18px 20px; background: var(--mist); border-radius: 6px; }
.notes h2 { font-size: 22px; }
.notes p { margin: 8px 0 0; }

/* ---------- Landing / login */
body.landing { position: relative; min-height: 100vh; display: grid; background: var(--paper); }
body.landing .corner-art { position: fixed; width: min(680px, 52vw); }
.landing-wrap { position: relative; z-index: 1; display: grid; place-items: center; padding: 56px 16px; }
.landing-card { width: 100%; max-width: 440px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 4px rgba(29,34,36,.04), 0 24px 60px -30px rgba(29,34,36,.45); overflow: hidden; }
.landing-card.wide { max-width: 560px; }
.card-head { padding: 30px 32px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.card-head h1 { font-size: 40px; }
.landing-logo { margin: 0; }
.landing-logo img { width: 260px; height: auto; margin: 0 auto; }
.card-head .tagline { margin: 6px 0 0; font-size: 20px; }
.landing-body { padding: 24px 32px 8px; }
.landing-body label + label, .landing-body label + .btn, .landing-body label + button { margin-top: 14px; }
.landing-body .btn { width: 100%; margin-top: 20px; }
.request { padding: 6px 32px 26px; }
.request summary { cursor: pointer; font-weight: 700; color: var(--sage-deep); padding: 8px 0; }
.request form > * + * { margin-top: 12px; }
.request .btn { width: 100%; }
.trap { position: absolute; left: -9999px; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; font-size: 15px; }
.checks .ok::before { content: '✓ '; color: var(--sage-deep); font-weight: 700; }
.checks .bad { color: var(--error); }
.checks .bad::before { content: '✕ '; font-weight: 700; }
.logout { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Page titles and in-page course tabs */
.page-title { font-size: 44px; text-align: center; margin: 0 0 14px; }
body.faves .page-title { margin-top: -4px; }
.course-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; max-width: 1180px; margin: 0 auto 16px; padding: 0 24px; }
.course-tabs a { font: 600 20px var(--serif); color: var(--muted); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.course-tabs a:hover { color: var(--ink); }
.course-tabs a.is-active { color: var(--ink); border-bottom-color: var(--sage); }
.chip .ico { font-size: 13px; vertical-align: -2px; }
.chip[data-status=f].is-on .ico { fill: currentColor; }

/* ---------- Recipe page additions */
.action-row .btn .ico { font-size: 16px; }
.plan-pop { position: relative; }
.plan-pop > summary { list-style: none; }
.plan-pop > summary::-webkit-details-marker { display: none; }
.plan-pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 250px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.plan-pop-body .btn { width: 100%; margin-top: 10px; }
.mark-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.mark { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--slate); font: 700 14px var(--sans); cursor: pointer; }
.mark:hover { border-color: var(--slate); }
.mark .ico { font-size: 15px; }
.mark[aria-pressed=true] { background: var(--sage-soft); border-color: var(--sage); color: var(--sage-ink); }
.mark-fave[aria-pressed=true] { background: var(--blush); border-color: var(--blush); color: var(--ink); }
.mark-fave[aria-pressed=true] .ico { fill: #b56b5c; stroke: #b56b5c; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--mist); color: var(--ink); }

.my-notes { margin-top: 10px; padding: 26px 30px; background: var(--blush-soft); border-radius: 8px; }
.my-notes h2 { font-size: 28px; }
.my-notes > .muted { margin: 2px 0 12px; }
.note-list { list-style: none; padding: 0; margin: 0 0 12px; }
.note-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(72, 84, 88, .12); }
.note-body { flex: 1; font: italic 600 20px/1.3 var(--serif); color: var(--ink); }
.note-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.note-add { display: flex; gap: 8px; }
.note-add input { margin: 0; background: #fff; }
.note-add .btn { flex: none; background: #fff; border-color: var(--blush-deep); }
.note-add .btn:hover { background: var(--blush); }

.recipe-credit { margin-top: 34px; padding: 22px 0 6px; border-top: 1px solid var(--line); text-align: center; font: italic 700 20px var(--serif); color: var(--sage-deep); }
.recipe-credit a { color: inherit; }

/* ---------- Meal planning */
.page-wrap { max-width: 1180px; margin: 0 auto; padding: 6px 24px 72px; }
.narrow-wrap { max-width: 760px; }
.page-head { text-align: center; margin-bottom: 22px; }
.page-head .page-title { margin-bottom: 6px; }
.week-nav { display: flex; justify-content: center; align-items: center; gap: 14px; }
.week-label { font: italic 600 21px var(--serif); color: var(--slate); }
.icon-link { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); text-decoration: none; font-size: 20px; line-height: 1; }
.icon-link:hover { border-color: var(--slate); color: var(--ink); }
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.week { border-top: 1px solid var(--line); }
.day { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.day.is-today .dow { color: var(--sage-deep); }
.day.is-past { opacity: .62; }
.day.is-past:hover, .day.is-past:focus-within { opacity: 1; }
.day-label { display: flex; flex-direction: column; }
.dow { font: 700 22px/1.1 var(--serif); }
.date { font-size: 13px; color: var(--muted); }
.day-body { display: flex; flex-direction: column; gap: 8px; }
.meal { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 6px; border: 1px solid var(--hair); border-radius: 8px; background: #fff; }
.meal img, .meal-mono { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; }
.meal-mono { display: grid; place-items: center; background: var(--mist); font: 600 24px var(--serif); color: var(--stone); }
.meal-main { flex: 1; min-width: 0; }
.meal-main a { font: 700 19px/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.meal-main a:hover { text-decoration: underline; }
.servings label { display: inline-flex; align-items: center; gap: 6px; font: 400 13px var(--sans); color: var(--muted); }
.servings input { width: 58px; margin: 0; padding: 2px 6px; font-size: 13px; }
.meal.is-note { background: var(--mist); border-style: dashed; }
.meal-note { flex: 1; padding: 6px 8px; font: italic 600 18px var(--serif); color: var(--slate); }
.day-add { display: flex; align-items: center; gap: 6px; }
.day-add input { margin: 0; padding: 8px 12px; font-size: 15px; border: 1px dashed var(--line); background: #fff; }
.day-add input:hover { border-color: var(--stone); }
.day-add input:focus { border-style: solid; }
.day-add .add-btn { flex: none; min-height: 38px; visibility: hidden; }
.day-add.has-text .add-btn { visibility: visible; background: var(--blush); border-color: var(--blush); color: var(--ink); }
.day-add.is-saving { opacity: .6; pointer-events: none; }
.day-more { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.day-more:empty { display: none; }
.meal.is-side { margin-left: 26px; padding: 4px 6px; }
.meal.is-side img, .meal.is-side .meal-mono { width: 48px; height: 34px; }
.meal.is-side .meal-main a { font-size: 17px; }
.meal-kind { display: block; font: 700 10.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meal-kind.is-picked { color: var(--sage-deep); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transition: opacity .6s; }
.toast form { margin: 0; }
.toast .linklike { color: #fff; font-weight: 700; }
.toast.is-fading { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.icon-btn.add { color: var(--sage-deep); border: 1px solid var(--sage); }
.plan-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.side-card h2 { font-size: 24px; margin-bottom: 6px; }
.side-card .btn { width: 100%; margin: 6px 0 8px; }
.suggest-list { list-style: none; padding: 0; margin: 8px 0 0; }
.suggest-list li { padding: 12px 0; border-top: 1px solid var(--hair); }
.suggest-title { display: block; font: 700 18px/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.suggest-title:hover { text-decoration: underline; }
.shared { display: block; margin: 2px 0 8px; font-size: 13px; font-style: italic; color: var(--muted); }
.suggest-add { display: flex; gap: 6px; }
.suggest-add select { width: auto; margin: 0; padding: 4px 8px; font-size: 14px; }
.side-card .suggest-add .btn { width: auto; margin: 0; }
.clear-week { text-align: center; }

/* ---------- Shopping list */
.shop-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.build-form { display: flex; gap: 8px; }
.build-form select { width: auto; margin: 0; }
.tool-links { display: flex; align-items: center; gap: 8px; }
.shop-add { display: flex; gap: 8px; margin-bottom: 24px; }
.shop-add input { margin: 0; }
.shop-section { margin-bottom: 22px; }
.shop-section h2 { font-size: 24px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.shop-section ul { list-style: none; padding: 0; margin: 0; }
.shop-section li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.tick { flex: 1; min-width: 60%; }
.tick label { display: flex; align-items: baseline; gap: 12px; font-weight: 400; font-size: 17px; cursor: pointer; }
.tick input { flex: none; width: 19px; height: 19px; accent-color: var(--sage-deep); transform: translateY(3px); }
.what b { font-weight: 700; }
.for { flex-basis: 100%; padding-left: 31px; font-size: 13px; font-style: italic; color: var(--muted); }
.is-checked .what { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--sage); }
.is-checked .for { opacity: .6; }
.item-x { margin-left: auto; }
.pantry { margin-top: 30px; padding: 16px 20px; background: var(--mist); border-radius: 8px; }
.pantry summary { cursor: pointer; font-weight: 700; color: var(--slate); }
.pantry form { margin-top: 10px; }
.pantry .btn { margin-top: 10px; }

/* ---------- Small screens */
@media (max-width: 760px) {
  .course-tabs { gap: 2px 16px; padding: 0 16px; }
  .course-tabs a { font-size: 17px; }
  .corner-art { width: 56vw; opacity: .55; }
  body.box .corner-art { opacity: .35; }
  body.landing .corner-art { width: 78vw; opacity: .6; }
  .plan-layout { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: 6px; }
  .day-label { flex-direction: row; gap: 8px; align-items: baseline; }
  .shop-tools { flex-direction: column; align-items: stretch; }
  .mark-bar { gap: 6px; }
  .mark { padding: 6px 12px; font-size: 13px; }
  .action-row .btn { padding: 6px 12px; font-size: 14px; min-height: 36px; }
  .brand-row { grid-template-columns: 1fr auto 1fr; padding: 12px 16px 14px; gap: 8px; }
  .brandmark img { height: 52px; }
  .brandmark.is-big img { height: 72px; }
  .brand-left .btn-add { display: none; }
  .btn-request { padding: 5px 10px; font-size: 13px; min-height: 32px; }
  .brand-left, .brand-right { gap: 10px; }
  .quiet-link { font-size: 14px; }
  .tagline { font-size: 18px; margin-bottom: 14px; }
  .search input { height: 48px; }
  .filters { padding: 0 16px; gap: 10px; }
  .filters .chips { justify-content: center; }
  .tags-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .tags-toggle .ico { font-size: 13px; }
  .tags-toggle[aria-expanded="true"] { border-color: var(--slate); }
  .tag-chips { display: none; }
  .tag-chips.is-open { display: flex; flex-wrap: wrap; justify-content: center; }
  .box-wrap, .sheet-wrap { padding: 14px 16px 56px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .card-pills .pill-tag:nth-child(n+2) { display: none; }
  .card h3 { font-size: 20px; }
  .card-meta { font-size: 13px; gap: 2px 10px; }
  .stamp { font-size: 17px; top: 6px; right: 6px; padding: 0 7px; }
  .recipe-head { padding: 20px 0 18px; }
  .facts div { padding: 10px 14px; }
  .recipe-cols { grid-template-columns: 1fr; }
  .ingredients { padding: 22px 0 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps { padding: 22px 0 32px; }
  .step-list li { padding-left: 34px; }
  .sheet.narrow { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .masthead, .corner-art, .sheet-actions, .flash, .toast, .shop-tools, .shop-add, .pantry, .item-x, .mark-bar, .note-add, .note-list .icon-btn { display: none !important; }
  body, body.box { background: #fff; }
  .shop-section { break-inside: avoid; }
  .page-head .muted { display: none; }
}

/* ---------- Day notes, ratings, avoids, Plan my week, How I eat */
.day-note { position: relative; margin-top: 6px; }
.day-note > summary { list-style: none; cursor: pointer; width: fit-content; }
.day-note > summary::-webkit-details-marker { display: none; }
.day-note .add-note { font-size: 13px; color: var(--muted); }
.day-note .add-note:hover { color: var(--sage-deep); text-decoration: underline; }
.day-note .theme { display: inline-block; padding: 0 10px; border-radius: 4px; background: var(--blush); color: var(--slate); font: 600 20px/1.35 var(--hand); transform: rotate(-2deg); }
.note-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 6; width: 270px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.note-pop form + form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); }
.note-pop label + label { margin-top: 8px; }
.note-pop .check { font-size: 14px; }
.note-pop .btn { margin-top: 10px; }
.note-pop-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meal-swap .linklike, .rate-quick .rate-q { font-size: 13px; color: var(--muted); }
.meal-swap .linklike:hover { color: var(--sage-deep); }
.rate-quick { display: flex; align-items: center; gap: 2px; }
.rate-quick .rate-q { margin-right: 4px; white-space: nowrap; }
.thumb { color: var(--slate); }
.thumb:hover { background: var(--sage-soft); color: var(--sage-ink); }
.avoid-flag { display: block; font-size: 12px; color: var(--warn); font-style: italic; }
.meta-avoid { color: var(--warn); }
.plan-auto .btn { margin-bottom: 8px; }
.rate-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.rate-form { display: flex; gap: 6px; }
.thumb-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--slate); font-size: 17px; cursor: pointer; }
.thumb-btn:hover { border-color: var(--slate); }
.thumb-btn[aria-pressed=true] { background: var(--sage); border-color: var(--sage); color: var(--sage-ink); }
.thumb-btn.down[aria-pressed=true] { background: #f1dcdc; border-color: #e3c3c3; color: var(--error); }
.undo-made .linklike { color: var(--muted); }
.avoid-warn { max-width: 60ch; margin: 16px auto 0; padding: 10px 14px; border-radius: 6px; background: #fbf1e0; color: #5a3d0c; font-size: 15px; text-align: left; }
.chip .ico { font-size: 13px; vertical-align: -2px; }

.prefs .pref-block { padding: 22px 0; border-top: 1px solid var(--line); }
.prefs .pref-block > * + * { margin-top: 12px; }
.prefs h2 { font-size: 26px; }
.week-grid { display: grid; gap: 6px; }
.wk-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; }
.wk-day { font: 700 19px var(--serif); }
.wk-row input:not([type]) { margin: 0; padding: 8px 12px; }
.wk-quick { font-size: 14px; white-space: nowrap; }
.inline-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 400; }
.inline-pick select { width: auto; margin: 0; }
.avoid-chips { justify-content: flex-start; }
.avoid-chips .pill input:checked + span { background: #f6e6cc; border-color: #e2c48f; color: #5a3d0c; }
.save-row { padding-top: 18px; border-top: 1px solid var(--line); }
.install { margin-top: 26px; padding: 20px; border-radius: 8px; background: var(--sage-soft); }
.install h2 { font-size: 24px; }
.install .btn { margin: 6px 0; }
.install-steps p { margin: 8px 0 0; font-size: 15px; }
.account-links { margin-top: 18px; font-size: 15px; }

/* desktop: hide nav icons; phones: the menu becomes a bottom tab bar, like an app */
.main-nav .ico { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.landing { padding-bottom: 0; }
  .nav-band { background: none; border: 0; }
  /* bottom tab bar: a light sage, about half the tag pill color, with the page you're on deeper */
  .main-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; max-width: none; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(222, 232, 226, .97); border-top: 1px solid rgba(75, 106, 90, .18); border-bottom: 0; overflow: visible; backdrop-filter: blur(8px); }
  .main-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; border: 0; font-size: 11px; font-weight: 700; color: #55655c; }
  .main-nav a .ico { display: block; box-sizing: content-box; width: 23px; height: 23px; padding: 3px 14px; border-radius: 999px; font-size: 23px; stroke-width: 1.7; }
  .main-nav a[aria-current] { color: var(--sage-ink); border: 0; }
  .main-nav a[aria-current] .ico { stroke-width: 2.1; background: var(--sage); }
  .main-nav a[href*="favorites"][aria-current] .ico { fill: var(--blush); }
  .main-nav .count-dot { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; }
  .masthead .brand-row { padding-top: calc(10px + env(safe-area-inset-top)); }
  .wk-row { grid-template-columns: 1fr auto; }
  .wk-day { grid-column: 1 / -1; font-size: 17px; }
  .note-pop { width: min(270px, calc(100vw - 48px)); }
  .rate-quick .rate-q { display: none; }
}

/* shared pills and two-column rows (also used outside admin) */
.pill { display: inline-flex; position: relative; cursor: pointer; font-weight: 700; font-size: 14px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.pill input:checked + span { background: var(--sage); border-color: var(--sage); color: var(--sage-ink); }
.pill input:focus-visible + span { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--sage-deep); flex: none; }
.prefs .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .prefs .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .plan-layout { display: flex; flex-direction: column; gap: 16px; }
  .plan-side { display: contents; }
  .plan-side .plan-auto { order: -1; }
  .plan-side > :not(.plan-auto) { order: 2; }
  .week { order: 1; }
}
.mark-rotation[aria-pressed=true] { background: var(--sage); border-color: var(--sage); color: var(--sage-ink); }
.stamp-rotation { background: var(--sage-soft); color: var(--sage-ink); }

/* Recipe requests */
.news-dot { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: #b56b5c; vertical-align: 2px; }
.request-form { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.request-form .btn { justify-self: start; }
.my-requests { margin-top: 30px; }
.my-requests h2 { font-size: 28px; margin-bottom: 8px; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hair); }
.req-main strong { font: 700 20px var(--serif); margin-right: 8px; }
.req-main .small { margin-right: 8px; }
.req-reply { margin: 6px 0 0; font-style: italic; color: var(--slate); }
.req-status { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--mist); color: var(--slate); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.req-status.is-added { background: var(--sage); color: var(--sage-ink); }
.req-status.is-declined { background: #f1e3e3; color: var(--error); }
.brand-left .btn .news-dot { background: #b56b5c; }
.btn-request .short { display: none; }
@media (max-width: 760px) { .btn-request .long { display: none; } .btn-request .short { display: inline; } }
.req-main { flex: 1; min-width: 0; }
@media (max-width: 760px) { .req-list li { flex-wrap: wrap; } .req-status { margin-left: 0; } }

/* ---------- Drafts, ratings */
.draft-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 16px; border: 1.5px dashed var(--warn); border-radius: 8px; background: #fbf5e8; }
.draft-banner p { margin: 0; }
.rate-note { flex-basis: 100%; text-align: center; font-size: 13px; color: var(--muted); }
.rate-note:empty { display: none; }
.thumbs-block { border-top: 1px solid var(--line); padding: 22px 0; margin-top: 8px; }
.thumbs-block h3 { display: flex; align-items: center; gap: 8px; font: 700 15px var(--sans); margin: 18px 0 6px; }
.thumbs-block h3 .count { color: var(--muted); font-weight: 400; }
.rated-list { list-style: none; padding: 0; margin: 0; }
.rated-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--blue-rule); }
.rated-list form { margin: 0; }

/* ---------- Cook Along Version: styled like the printout. A sage bar for each step, ingredients beside the instructions. */
body.cook-page { background: #fff; --cook-sage: #cddbcf; --cook-line: #b9cbbd; }
.cook-bar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 20px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(222, 232, 226, .97); border-bottom: 1px solid rgba(75, 106, 90, .18); }
.cook-bar-name { margin: 0; text-align: center; font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); }
.cook-back { color: var(--sage-ink); font-weight: 700; text-decoration: none; font-size: 15px; }
.cook-wake { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(75,106,90,.35); border-radius: 999px; background: #fff; color: var(--sage-ink); font: 700 13px var(--sans); cursor: pointer; }
.cook-wake[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); }
.cook-wrap { max-width: 1000px; margin: 0 auto; padding: 26px 24px 80px; }
.cook-title { margin: 0 0 18px; text-align: center; font: 700 clamp(26px, 3.4vw, 40px)/1.06 var(--serif); text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; font-variant-numeric: lining-nums; }
.cook-sec { margin: 28px 0 10px; font: 700 22px var(--serif); text-align: center; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.cook-step, .cook-extra { margin: 0 0 16px; border: 1px solid var(--cook-line); background: #fff; }
.cook-step { cursor: pointer; transition: opacity .25s; }
.cook-step:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 2px; }
.cook-bar-step { margin: 0; background: var(--cook-sage); text-align: center; font: 700 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; color: var(--ink); }
.cook-body { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 24px; padding: 16px 20px 18px; align-items: start; }
.cook-body.no-ing { grid-template-columns: 1fr; }
.cook-body.no-ing .cook-text { max-width: 62ch; margin: 0 auto; text-align: center; text-wrap: pretty; }
.cook-extra .cook-ing { padding: 14px 20px; }
.cook-ing { list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 1.4; }
.cook-ing li { display: grid; grid-template-columns: 34% 1fr; gap: 10px; padding: 3px 0; }
.cook-ing .amt { text-align: right; color: #4b534f; font-weight: 700; }
.cook-ing .is-again .item { color: var(--slate); }
.cook-ing .of { font-size: .82em; font-style: italic; color: var(--muted); white-space: nowrap; }
.again-tag { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--sage-soft); color: var(--sage-deep); font: 700 10.5px/1.8 var(--sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.cook-text { margin: 0; font-size: 21px; line-height: 1.55; }
.cook-step.is-done { opacity: .45; }
.cook-step.is-done .cook-bar-step { background: var(--sage-deep); color: #fff; }
.cook-step.is-done .cook-bar-step span::after { content: ' · Done'; }
.cook-foot { text-align: center; margin-top: 22px; font-size: 15px; }
.cook-edit-head { margin-bottom: 16px; }
.cook-edit-head h2 { font-size: 28px; }
.cook-step.is-editing { cursor: default; }
.cook-step.is-editing .cook-body { grid-template-columns: minmax(0, 46%) 1fr; }
.cook-drop { min-height: 40px; border: 1px dashed var(--line); border-radius: 6px; padding: 4px 10px; }
.cook-drop:empty::before { content: 'No ingredients here'; display: block; padding: 6px 0; font-size: 14px; font-style: italic; color: var(--muted); }
.cook-drop .cook-move { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; font-size: 16px; transition: background .6s; }
.cook-move select { margin: 0; padding: 4px 8px; font-size: 13px; color: var(--muted); }
.cook-move.just-moved { background: var(--sage-soft); }
.cook-edit-save { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: center; margin: 18px -24px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  body.cook-page { padding-bottom: 0; }
  .cook-bar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .cook-back span, .cook-wake span { display: none; }
  .cook-wrap { padding: 16px 12px 60px; }
  .cook-title { font-size: 24px; }
  .cook-body, .cook-step.is-editing .cook-body { grid-template-columns: 1fr; gap: 12px; padding: 12px 14px 14px; }
  .cook-ing { font-size: 17px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
  .cook-text { font-size: 19px; }
}
@media print { .cook-bar { display: none; } }
