/* Grocery price calendar (src/grocery.js). Static on purpose. */
:root { --green: #166534; --green2: #14532d; --leaf: #dcfce7; --cream: #f7f6f1; --ink: #1c1917; --muted: #78716c; --line: #e7e5df; --blue: #2a78d6; --red: #e34948; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--cream); color: #3f3a36; min-height: 100vh; }
.container { max-width: 800px; margin: 0 auto; padding: 24px 16px 48px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--green); text-decoration: none; }
.top { text-align: center; margin-bottom: 18px; }
.badge { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 900; line-height: 1; box-shadow: 0 0 0 5px var(--leaf); }
.badge small { display: block; font-size: 12px; font-weight: 700; opacity: .85; margin-top: -16px; }
h1 { font-size: 31px; line-height: 1.15; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 8px; }
.lede { font-size: 16.5px; line-height: 1.55; color: #57534e; max-width: 36em; margin: 0 auto; }
.panel { background: #fff; border-radius: 16px; padding: 20px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.07), 0 0 0 1px rgba(22,101,52,.06); margin-bottom: 20px; }
.panel h2 { font-size: 21px; font-weight: 750; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.panel h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 16px 0 6px; }
.panel p { font-size: 15.5px; line-height: 1.65; margin-bottom: 10px; }
.panel a { color: var(--green); }
.small { font-size: 13.5px !important; color: var(--muted); }
.big { font-size: 20px !important; line-height: 1.4 !important; color: var(--ink); }
.big b { color: var(--green); }
.answer { border-left: 6px solid var(--green); }
.src { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 6px 4px 0; }
.src a { color: var(--green); }
.tier { display: inline-block; font-size: 12px !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; margin-bottom: 8px !important; }
.tier.t-strong { background: var(--leaf); color: var(--green2); }
.tier.t-some { background: #fef3c7; color: #92400e; }
.tier.t-flat { background: #f1f0ec; color: #57534e; }
.pill { font-size: 11.5px; font-weight: 700; background: var(--leaf); color: var(--green2); border-radius: 99px; padding: 2px 7px; white-space: nowrap; }

.pick { list-style: none; margin: 4px 0 12px; }
.pick li { padding: 7px 0; border-bottom: 1px solid #f1efe9; font-size: 15.5px; line-height: 1.45; }
.pick li:last-child { border-bottom: 0; }
.pick em { font-style: normal; font-weight: 750; color: var(--blue); font-variant-numeric: tabular-nums; margin-left: 4px; }
.pick em.up { color: #b42318; }
.pick a { font-weight: 650; text-decoration: none; }
.big-list li { padding: 10px 0; }

.months { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 18px; }
.months a, .months b { font-size: 13.5px; padding: 6px 10px; border-radius: 99px; text-decoration: none; }
.months a { color: var(--green); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.months b { background: var(--green); color: #fff; }

.cal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 10px; }
.cal-m { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px 8px; background: #fdfdfb; }
.cal-m:hover { border-color: var(--green); }
.cal-m.now { border: 2px solid var(--green); background: #f6fdf8; }
.cal-m > b { display: block; font-size: 14px; color: var(--green2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.cal-m ul { list-style: none; }
.cal-m li { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; line-height: 1.5; }
.cal-m li em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--blue); }
.cal-m li.t-strong span, .cal-m li.t-some span { font-weight: 700; color: var(--ink); }
.cal-m li.t-flat { color: #a8a29e; }
.cal-m li.t-flat em { color: #a8a29e; }

.chart { margin: 8px 0 6px; position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .ax { font-size: 12px; fill: #78716c; }
.chart .ax.lo { fill: var(--blue); font-weight: 800; }
.chart .dl { font-size: 12.5px; font-weight: 800; fill: var(--ink); }
.chart .na { font-size: 14px; fill: #a8a29e; }
.chart .hit { cursor: default; }
.chart .hit:hover { fill: rgba(0,0,0,.035); }
.chart figcaption { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.key i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.key i.wk { width: 2px; height: 12px; background: #57534e; border-radius: 0; margin: 0 7px 0 4px; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; padding: 7px 10px; border-radius: 8px; max-width: 260px; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 5; }

.tbl-wrap { margin-top: 8px; }
.tbl-wrap summary { cursor: pointer; font-size: 14px; color: var(--green); font-weight: 650; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 6px; }
.tbl td { padding: 7px 6px; border-bottom: 1px solid #f1efe9; }
.tbl tr.hi td { background: #eef5fd; font-weight: 700; }
.tbl.wide a { font-weight: 650; text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff !important; border: 0; border-radius: 10px; padding: 12px 18px; font-size: 15.5px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; margin: 4px 6px 4px 0; }
.btn:hover { background: var(--green2); }
.btn.ghost { background: #fff; color: var(--green) !important; border: 2px solid var(--line); }
.mk { margin-top: 6px; }
.mk .small { display: block; margin-top: 4px; }
.faq h3 { margin-top: 14px; }
.foot { text-align: center; font-size: 13px; line-height: 2; color: var(--muted); margin-top: 28px; }
.foot a { color: var(--green); margin: 0 5px; text-decoration: none; }

@media (max-width: 560px) {
  h1 { font-size: 26px; }
  .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl.wide th:nth-child(5), .tbl.wide td:nth-child(5) { display: none; }
  .tbl { font-size: 13.5px; }
}

/* Printable: one landscape Letter page */
body.print { background: #fff; }
.sheet { width: 10in; margin: 0.3in auto; }
.sheet-head h1 { font-size: 34px; margin-bottom: 4px; }
.sheet-head p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.sheet .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.sheet .cal-m { padding: 9px 11px; border-radius: 10px; min-height: 1.95in; }
.sheet .cal-m.now { border: 1px solid var(--line); background: #fdfdfb; }
.sheet .cal-m > b { font-size: 15px; margin-bottom: 4px; }
.sheet .cal-m li { font-size: 13.5px; line-height: 1.45; }
.sheet-foot { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }
.noprint { text-align: center; margin: 16px; }
@media print {
  @page { size: letter landscape; margin: 0.35in; }
  .noprint { display: none; }
  .sheet { margin: 0; width: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
