/* Rick Lidgett grocery planner 1.1.0 */
:root { color-scheme:light; --ink:#20382c; --muted:#52645a; --green:#23653f; --pale:#edf5ef; --line:#cedbd2; --paper:#fff; font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:#f7faf8; }
* { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none !important; }
a { color:#21663f; text-underline-offset:3px; }
button,input,select { font:inherit; }
button,.button { min-height:44px; border:1px solid var(--green); border-radius:5px; padding:9px 15px; background:var(--green); color:white; font-weight:650; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
button:hover,.button:hover { background:#184b2d; }
button.secondary { background:white; color:var(--green); }
button.secondary:hover { background:var(--pale); }
button:disabled { opacity:.6; cursor:not-allowed; }
:focus-visible { outline:3px solid #3677b0; outline-offset:3px; }
input:not([type=checkbox]),select { display:block; width:100%; min-width:0; min-height:44px; border:1px solid #8da997; border-radius:4px; padding:8px 9px; color:var(--ink); background:white; }
input[type=checkbox] { width:22px; height:22px; accent-color:var(--green); cursor:pointer; }
input:invalid { border-color:#a34535; }
label { font-size:13px; font-weight:650; }
fieldset { border:0; padding:0; margin:0; min-width:0; }
.shell { width:min(1280px,100% - 48px); margin:auto; }
.site-header { background:white; border-bottom:1px solid var(--line); }
.header-inner,.page-heading,.section-heading,.plan-title { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px 24px; }
.header-inner { min-height:72px; padding-block:14px; }
.brand { font-size:19px; font-weight:750; text-decoration:none; }
nav { display:flex; gap:22px; flex-wrap:wrap; }
.header-inner nav { font-size:14px; }
main.shell { padding-top:28px; }
h1 { font-size:30px; line-height:1.2; margin:4px 0 8px; }
h2 { font-size:21px; line-height:1.3; margin:0 0 6px; }
h3 { font-size:17px; line-height:1.4; margin:0 0 6px; }
p { margin:0 0 12px; }
.eyebrow { font-size:11px; text-transform:uppercase; font-weight:750; color:#4f6d59; margin:0; }
.muted,.hint { color:var(--muted); }
.hint { display:block; font-size:12px; font-weight:400; margin-top:5px; }
.disclaimer { max-width:950px; font-size:13px; color:var(--muted); margin:12px 0 18px; }
.message { background:var(--pale); border:1px solid #a4c1ad; border-radius:5px; padding:12px 15px; margin-bottom:14px; overflow-wrap:anywhere; }
.message.error { color:#783529; background:#fff4f1; border-color:#c99a90; }
.tabs { gap:4px; border-bottom:1px solid var(--line); margin:22px 0 24px; }
.tabs button { border:0; border-bottom:3px solid transparent; border-radius:0; background:transparent; color:var(--muted); padding:10px 18px; }
.tabs button[aria-current=page] { border-bottom-color:var(--green); background:#e9f3ec; color:var(--green); }
.section-heading { margin-bottom:18px; }
.section-heading p { margin-bottom:0; font-size:14px; }
.badge { background:#e8f2eb; border:1px solid #b4cdbb; padding:4px 9px; font-size:12px; font-weight:650; border-radius:4px; }
.settings-disclosure,.units-disclosure { border-bottom:1px solid var(--line); }
.settings-disclosure > summary,.units-disclosure > summary { min-height:44px; font-size:13px; padding:11px 0; }
.household-settings { display:grid; grid-template-columns:minmax(180px,240px) minmax(0,600px); gap:36px; padding:20px 0; border-top:1px solid var(--line); }
.budget-field input { margin-top:6px; }
.field-title { font-weight:650; font-size:13px; margin:0 0 10px; }
.person-grid { display:grid; grid-template-columns:minmax(100px,1fr) minmax(90px,1fr) minmax(90px,1fr); gap:7px 12px; align-items:center; }
.person-grid > span { font-size:12px; color:var(--muted); }
.catalog-note { font-size:13px; border-left:3px solid #9bbbA6; background:var(--pale); padding:10px 14px; margin:8px 0 18px; }
.table-wrap { overflow:auto; max-width:100%; background:white; border-top:1px solid var(--line); }
.catalog-wrap,.shopping .table-wrap { max-height:min(65vh,620px); scroll-padding-top:60px; isolation:isolate; }
.catalog,.shopping-table { border-collapse:separate; border-spacing:0; }
.catalog thead th,.shopping-table thead th { position:sticky; top:0; z-index:3; }
.catalog th:nth-child(2),.shopping-table th:first-child { position:sticky; left:0; background:white; z-index:2; box-shadow:1px 0 0 var(--line); }
.catalog thead th:nth-child(2),.shopping-table thead th:first-child { background:#eaf2ec; z-index:4; }
.catalog tr:has(input[type=checkbox]:checked) > th { background:#f5faf6; }
table { width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
th,td { text-align:left; padding:10px; border-bottom:1px solid #dce6df; vertical-align:middle; }
thead th { background:#eaf2ec; font-size:12px; font-weight:700; }
tbody th { font-weight:600; }
.catalog { min-width:995px; table-layout:fixed; }
.catalog th:first-child { width:74px; text-align:center; }
.catalog th:nth-child(2) { width:160px; overflow-wrap:anywhere; }
.catalog th:nth-child(3),.catalog th:nth-child(4) { width:155px; }
.catalog th:nth-child(5) { width:125px; }
.catalog th:nth-child(6) { width:160px; }
.catalog th:nth-child(7) { width:166px; }
.catalog .unit { display:block; color:var(--muted); font-weight:400; font-size:12px; margin-top:3px; }
.catalog tr:has(input[type=checkbox]:checked) { background:#f5faf6; }
.catalog input { font-size:13px; }
.catalog td:first-child { text-align:center; }
.save-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; background:#f7faf8; padding:10px 0; border-block:1px solid var(--line); }
.save-bar strong { font-size:14px; }
.plan-controls { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:20px; border-block:1px solid var(--line); padding:18px 0; margin-bottom:10px; }
.inline-form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:10px; min-width:0; }
.inline-form label { min-width:170px; max-width:100%; }
.inline-form input,.inline-form select { margin-top:6px; }
.empty { padding:36px 0; border-bottom:1px solid var(--line); color:var(--muted); max-width:700px; }
.plan-title { margin:28px 0 18px; }
.budget-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; margin-bottom:16px; }
.budget-metric { border-left:3px solid #aecab7; padding-left:12px; }
.budget-metric dt { color:var(--muted); font-size:12px; }
.budget-metric dd { font-size:23px; font-weight:700; margin:4px 0; overflow-wrap:anywhere; }
.budget-metric .hint { margin-top:0; }
progress { width:100%; height:12px; accent-color:var(--green); }
.warnings { color:#7a422b; padding-left:20px; font-size:14px; }
.nutrition-note { font-size:12px; color:var(--muted); padding-bottom:18px; border-bottom:1px solid var(--line); }
.day { padding:20px 0 8px; border-bottom:1px solid var(--line); }
.day-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.day-totals { font-size:12px; color:var(--muted); }
.holiday-note { font-size:13px; color:var(--green); font-weight:650; }
.meals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.meal { min-width:0; padding:6px 0 12px; }
.meal-type { font-size:11px; font-weight:700; text-transform:uppercase; color:var(--green); margin-bottom:5px; }
.meal h4 { margin:0 0 6px; font-size:15px; }
.meal details { font-size:12px; }
summary { cursor:pointer; color:var(--green); padding:9px 0; font-weight:650; }
.recipe-table { font-size:12px; background:white; }
.recipe-table td,.recipe-table th { padding:7px 5px; overflow-wrap:anywhere; }
.recipe-table th:not(:first-child) { overflow-wrap:normal; word-break:normal; }
.method { margin:10px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
ol.method { padding-left:20px; }
.shopping { margin-top:28px; }
.shopping .table-wrap { --shopping-context-width:140px; scroll-padding-inline:calc(var(--shopping-context-width) + 8px) 8px; }
.shopping-table { min-width:1220px; table-layout:fixed; }
.shopping-table thead th:nth-last-child(2) { width:135px; }
.shopping-table thead th:last-child { width:122px; }
.shopping-table td:last-child button { width:100%; padding-inline:6px; white-space:normal; }
.nutrition-targets { padding-bottom:12px; }
#nutrient-targets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.nutrient-goal-person { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.nutrient-goal-person legend { font-size:13px; font-weight:650; margin-bottom:8px; }
.nutrient-goal-person label { font-size:12px; }
.daily-nutrition { font-size:12px; border-top:1px solid var(--line); }
.nutrition-table-wrap { scroll-padding-inline:158px 8px; isolation:isolate; }
.nutrition-table { min-width:570px; table-layout:fixed; border-collapse:separate; border-spacing:0; }
.nutrition-table th:first-child { width:150px; position:sticky; left:0; z-index:2; background:white; box-shadow:1px 0 0 var(--line); }
.nutrition-table thead th:first-child { background:#eaf2ec; }
.nutrition-table .hint { max-width:220px; }
.food-reference { padding:12px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.food-reference p { margin:4px 0; }
.food-nutrients { display:grid; grid-template-columns:minmax(100px,160px) minmax(0,1fr); gap:2px 12px; }
.food-nutrients dd { margin:0; }
.meal-log { border-top:1px solid var(--line); margin-top:5px; }
.meal-log-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; padding:9px 0; border-bottom:1px solid var(--line); }
.meal-log-row > label:nth-child(2) { grid-column:1 / -1; }
.meal-log-row input,.meal-log-row select { font-size:12px; }
.meal-log-row button { grid-column:2; grid-row:1; align-self:end; font-size:12px; min-height:44px; padding:6px 12px; }
.recorded-meal { grid-column:1 / -1; overflow-wrap:anywhere; }
@media(max-width:850px) { #nutrient-targets { grid-template-columns:1fr; max-width:600px; } }
@media print { .meal-log { display:none !important; } .nutrition-table { min-width:0; } .nutrition-table-wrap { overflow:visible; } .food-reference { break-inside:avoid; } }
.shopping-table th:first-child { width:140px; overflow-wrap:anywhere; }
.shopping-table input:not([type=checkbox]) { width:115px; }
.shopping-table td:nth-last-child(2) input { width:100%; max-width:115px; }
.shopping-table td:nth-child(n+2):nth-child(-n+6) { white-space:nowrap; }
.purchase-form { display:contents; }
.holiday-table { table-layout:fixed; }
.holiday-table th,.holiday-table td { overflow-wrap:normal; word-break:normal; }
.holiday-table thead th:first-child,.holiday-table thead th:last-child { width:28%; }
.section-heading #calendar-year { width:115px; margin-top:5px; }
.sign-in { padding-block:40px; max-width:800px; }
.skip { position:absolute; top:-100px; left:12px; padding:10px; background:white; z-index:10; }
.skip:focus { top:10px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
footer { border-top:1px solid var(--line); margin-top:36px !important; padding-block:20px 28px; font-size:12px; color:var(--muted); }
@media(max-width:1100px) { .meals { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:850px) { .meals { grid-template-columns:1fr; gap:0; } .meal + .meal { border-top:1px solid #e1e9e3; padding-top:12px; } .household-settings { grid-template-columns:1fr; gap:20px; } .budget-field { max-width:300px; } .budget-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .people-settings { max-width:600px; } }
@media(max-width:480px) { .shell { width:calc(100% - 28px); } .header-inner { gap:10px; } .header-inner nav { gap:16px; font-size:13px; } main.shell { padding-top:16px; } .page-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; } h1 { font-size:23px; } #household-name { font-size:12px; margin-bottom:0; } .disclaimer { font-size:12px; margin:10px 0; } .message { padding:9px 12px; margin-bottom:10px; font-size:13px; } .tabs { gap:0; flex-wrap:nowrap; margin:14px 0; } .tabs button { flex:1; padding:10px 7px; font-size:12px; } #view-groceries > .section-heading { gap:8px; margin-bottom:10px; } #grocery-heading { font-size:18px; margin:0; } .person-grid { grid-template-columns:minmax(88px,1fr) minmax(80px,1fr) minmax(80px,1fr); gap:7px; } .person-grid label { font-size:12px; } .save-bar { gap:8px; } .save-bar strong { font-size:12px; } .save-bar button { padding-inline:12px; font-size:13px; } .catalog th:nth-child(2) { width:130px; } .catalog { min-width:965px; } .shopping-table th:first-child { width:130px; } .inline-form { width:100%; } .inline-form label { flex:1; } .inline-form button { flex-shrink:0; font-size:13px; } .budget-metric dd { font-size:21px; } .holiday-table th,.holiday-table td { padding:9px 7px; } }
@media print { :root { background:white; font-size:10pt; } .shell { width:100%; } .site-header,.page-heading,.disclaimer,.tabs,#message,#auth-link,#view-groceries,#view-calendar,.plan-controls,#print,.purchase-control,footer,.skip,#view-week > .hint { display:none !important; } #view-week,#plan-content { display:block !important; } main.shell { padding:0; } .table-wrap { overflow:visible; max-height:none !important; isolation:auto; } .shopping-table { min-width:0; font-size:8pt; table-layout:auto; } .shopping-table th,.shopping-table td { padding:5px; white-space:normal !important; position:static !important; box-shadow:none !important; } .shopping-table th:first-child { width:auto; } .meals { display:block; } .meal { break-inside:avoid; } .day { break-inside:auto; } .day-heading { break-after:avoid; } .recipe-table { max-width:100%; } details > * { display:block; } details > table { display:table; } details > summary { display:none; } .budget-summary { grid-template-columns:repeat(4,1fr); } .budget-metric dd { font-size:16pt; } .catalog-note { background:white; } .shopping { break-before:page; } a { color:inherit; } }
@media screen and (max-width:480px) {
  .shopping .table-wrap { --shopping-context-width:110px; }
  .shopping-table th:first-child { width:110px; }
  .shopping-table thead th:nth-last-child(2) { width:104px; }
  .shopping-table thead th:last-child { width:110px; }
  .shopping-table td:last-child button { font-size:12px; }
}
@media print {
  .daily-nutrition > summary { display:block; cursor:default; color:var(--ink); break-after:avoid; }
  .logged-caveat { break-after:avoid; }
  .daily-nutrition > .nutrition-table-wrap { break-before:avoid; }
  .nutrition-table th:first-child { position:static; box-shadow:none; }
}
