/* LunchLine, flat layer. White paper, black ink, hairlines, and the logo's orange used sparingly
   (active tab, today, links, focus). Loaded after styles.css, so it wins; nothing here is decoration. */

:root {
  color-scheme: light;
  --bg: #FFFFFF; --bg-2: #F5F4F2; --surface: #FFFFFF; --surface-2: #FAF9F8;
  --ink: #111111; --ink-2: #4B4A47; --faint: #6A6862;
  --line: #E8E6E2; --line-2: #C8C5BF;
  --brand-soft: #FFF1EA; --brand-soft-2: #FFE3D6;
  --amber-s: #FFF3D6; --good-s: #E7F4EC; --bad-s: #FBECEA; --mid-s: #F1F0ED;
  --r-s: 4px; --r-m: 6px; --r-l: 8px; --r-xl: 10px;
  --sh-1: none; --sh-2: 0 12px 40px rgba(0, 0, 0, .14);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand-text) 35%, transparent);
}
body { background: #fff; }
body::before { display: none !important; animation: none; }
body.is-ob { background: #fff; }
h1, h2, h3 { letter-spacing: -.02em; }
.toast { border-radius: 6px; box-shadow: var(--sh-2); }

/* controls */
.btn { border-radius: 6px; box-shadow: none; font-weight: 700; }
.btn.lg { border-radius: 6px; } .btn.sm, .btn.xs { border-radius: 5px; }
.btn.primary { background: #111; color: #fff; box-shadow: none; }
.btn.primary:hover:not(:disabled) { background: #000; filter: none; }
.btn.secondary { background: #fff; border: 1px solid #111; color: #111; }
.btn.secondary:hover:not(:disabled) { background: #111; color: #fff; border-color: #111; }
.btn.ghost { color: var(--ink); } .btn.ghost:hover { background: var(--bg-2); }
.btn.on-brand { background: #111; color: #fff; }
.btn.primary:not(:disabled):focus-visible { animation: none; }
.icon-btn:hover { background: var(--bg-2); } .icon-btn.outlined { border-width: 1px; }
.chip-btn { box-shadow: none; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; }
.input { border-radius: 6px; border-width: 1px; min-height: 46px; }
.input:focus { border-color: #111; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.seg { border-radius: 6px; background: var(--bg-2); padding: 3px; }
.seg button { border-radius: 4px; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 1px var(--line-2); }
.seg-n { border-radius: 3px; }
.toggle, .pick { border-radius: 6px; border-width: 1px; }
.toggle[aria-pressed="true"], .pick[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; box-shadow: none; }
.pick[aria-pressed="true"] .i { color: #fff; }
.check-box { border-radius: 4px; border-width: 1.5px; }
.check input:checked + .check-box { background: #111; border-color: #111; color: #fff; }
.pill { border-radius: 4px; }
.alert { border-radius: 6px; border-width: 1px; }
.notice, .empty { border-radius: 8px; box-shadow: none; border: 1px solid var(--line); }
.empty { border-style: solid; background: var(--surface-2); }
.skel { border-radius: 8px; }
.reply, .bd-reply { border-radius: 6px; background: var(--bg-2); }
.reply .i, .bd-reply .i { color: var(--ink-2); }
.link { color: var(--ink); text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
dialog.sheet { border-radius: 12px 12px 0 0; }
@media (min-width: 720px) { dialog.sheet { border-radius: 10px; } }
dialog.modal { border-radius: 8px; }
dialog::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: none; }
.ds-x { border-radius: 6px; box-shadow: none; }

/* join and sign-in screens: a plain white page */
.fl { background: #fff; color: var(--ink); }
.fl-blobs { display: none; }
.fl-top { padding-bottom: 0; }
.fl-hero { padding: 12px 20px 8px; place-items: start center; }
.stitch { border: 0; padding: 8px 0; text-align: left; justify-items: start; width: min(580px, 100%); }
.stitch-name { color: var(--ink); font-size: clamp(1.8rem, 6vw, 2.3rem); }
.stitch-k { color: var(--ink-2); }
.icon-btn.on-dark { color: var(--ink); }
.icon-btn.on-dark:hover { background: var(--bg-2); }
.fl .chip-btn, .lp-nav .chip-btn { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.fl-card { margin-top: 0; border-radius: 0; box-shadow: none; animation: none; border-top: 1px solid var(--line); padding-top: 22px; }
.fl-hero .stitch { animation: none; }
.fl-tabs button { border-radius: 0; color: var(--ink-2); }
.fl-tabs button[aria-selected="true"] { background: none; box-shadow: none; color: var(--ink); }
.fl-tabs button[aria-selected="true"]::after { background: var(--brand); width: 3px; }
.result, .sent-card { border-radius: 6px; box-shadow: none; border: 1px solid var(--line); background: #fff; }
.sent-card { background: var(--bg-2); border: 0; }
.sent-card .i { color: var(--ink); }
.dev-note { border-radius: 6px; }

/* student app: a top bar instead of a side rail, and a plain page */
.app.student { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; max-width: 760px; box-shadow: none; border-radius: 0; margin: 0 auto; background: #fff; }
@media (min-width: 720px) { .app.student { margin: 0 auto; min-height: 100dvh; border-radius: 0; } }
.rail { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; overflow-y: hidden; background: #fff; border-bottom: 1px solid var(--line); padding: max(8px, env(safe-area-inset-top)) 12px 0; }
@media (min-width: 720px) { .rail { height: auto; } }
.rail-mark { margin: 0 10px 8px 0; }
.rail-list { flex-direction: row; flex: 1 1 auto; justify-content: flex-start; margin: 0; width: auto; }
.rail-i { padding: 0 14px; min-height: 52px; border: 0 !important; color: var(--ink-2); flex: none; }
.rail-t { writing-mode: horizontal-tb; transform: none; font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.rail-i.on { color: var(--ink); }
.rail-i.on::after { right: 10px; left: 10px; top: auto; bottom: 0; width: auto; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); animation: none; }
.rail-me { margin: 0 0 8px 8px; width: 36px; height: 36px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); }
.rail-me.on { box-shadow: 0 0 0 2px var(--ink); }
@media (hover: hover) { .rail-i:hover { color: var(--ink); background: var(--bg-2); } }
.stage { padding: 18px 18px 56px; }
.carousel { display: none; }
.st-school { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.page-head h1 { font-weight: 800; letter-spacing: -.03em; }
.week-bar .icon-btn { border: 1px solid var(--line-2); }
.days { gap: 4px; }
.day { border-radius: 6px; box-shadow: none; border-width: 1px; min-height: 60px; }
.day[aria-pressed="true"] { background: #111; border-color: #111; color: #fff; box-shadow: none; }
.day[aria-pressed="true"] .day-w { color: #fff; }
.day[aria-pressed="true"] .day-dot { background: #fff; }
.day.is-today .day-w { color: var(--brand-text); }
.meal-t { font-weight: 800; }
.dish-grid { gap: 20px 14px; }
.dc { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.dc:has(.dc-open:hover) { transform: none; box-shadow: none; }
.dc.is-warn { box-shadow: none; }
.dc.is-warn .dc-photo { outline: 2px solid var(--bad); outline-offset: -2px; }
.dc.is-caution .dc-photo { outline: 2px solid var(--amber); outline-offset: -2px; }
.dc-open { padding: 0; }
.dc-photo { border-radius: 4px; aspect-ratio: 4 / 3; }
.dc-body { text-align: left; padding: 10px 0 8px; }
.dc-name { font-weight: 700; font-size: 1rem; min-height: 0; -webkit-line-clamp: 2; }
.dc-sub { margin-top: 2px; }
.dc-flag, .dc-badge { border-radius: 3px; }
.dc-foot { background: none; padding: 0; min-height: 0; }
.rb-row { justify-content: flex-start; gap: 6px; }
.rb { width: 44px; height: 38px; border-radius: 5px; border-width: 1px; }
.rb.pop { animation: none; }
.rate { border-radius: 8px; box-shadow: none; border: 1px solid var(--line); }
.rate-btn { border-radius: 6px; border-width: 1px; }
.dc-photo img, .rank-img, .thumb { transition: none; }
.dc:hover .dc-photo img { transform: none; }
.ds-meta span { border-radius: 3px; }
.bd, .tile, .card, .edit-row { border-radius: 8px; box-shadow: none; border: 1px solid var(--line); }
.bd.t1 { box-shadow: none; border-color: #111; }
.bd-rank, .rank-n { border-radius: 4px; }
.bd.t1 .bd-rank { background: #111; color: #fff; }
.bd.t2 .bd-rank, .bd.t3 .bd-rank { background: var(--bg-2); color: var(--ink); }
.nutri-grid > div { border-radius: 6px; box-shadow: none; border: 1px solid var(--line); }
.nutri-edit { border-radius: 6px; border-width: 1px; }
.dc-noimg, .rank-img.ph, .thumb.ph { background: var(--bg-2); }
.dc-noimg .emo { filter: none; }

/* staff: a white sidebar, flat panels */
.side { background: #fff; color: var(--ink); border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .side { border-top: 0; border-right: 1px solid var(--line); } }
.side .side-i { color: var(--ink-2); border-radius: 6px; }
.side .side-i.on { background: var(--bg-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); }
@media (hover: hover) { .side .side-i:hover { background: var(--bg-2); color: var(--ink); } }
.side .side-brand, .side .side-foot, .side .side-foot * { color: var(--ink-2); }
.side .side-brand *, .side .side-brand strong { color: var(--ink); }
.side .side-foot button, .side .side-foot a { color: var(--ink); }
.tile { background: #fff; }
.tile.hero { background: #111; color: #fff; box-shadow: none; border-color: #111; }
.tile.hero::before { display: none; }
.tile.hero .ring-in { background: #111; }
.tile:hover, .lp-grid li:hover { transform: none; box-shadow: none; }
.tile-big { font-weight: 800; }
.team-av { border-radius: 4px; background: var(--bg-2); }
.rank-img { border-radius: 4px; }
.cell { min-height: 56px; }
.mail-ic { border-radius: 8px; background: #111; color: #fff; }
.switch[aria-checked="true"] .switch-track { background: #111; }
.poster { border-radius: 0; }
@media (hover: hover) { .btn:hover:not(:disabled), .pick:hover, .toggle:hover, .chip-btn:hover, .result:hover, .edit-row:hover, .bd:hover { transform: none; } }
.stitch-logo { display: none; }

/* ===== v2: type, polish ===== */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
:root { --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif; --warm: #F6F3EE; }
.page-head h1, .st-school, .stitch-name, .ds-name, .meal-t, .fl-title, .ob-title, .tile-big, .card-head h2, .side-brand strong, .sheet-title h2, .sheet-form h2, .modal-in h2, .big-code, .bn-big, .mail-body h2 {
  font-family: var(--font); font-weight: 750; letter-spacing: -.02em; }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.05; }
.page-head .sub, .lede, .fl-lede { font-size: 1.05rem; line-height: 1.6; max-width: 40em; }
.st-school { font-size: 1.9rem; }
.meal-t { font-size: 1.5rem; }
.ds-name { font-size: 2rem; line-height: 1.05; }

/* softer, rounder controls to match the landing page */
.btn, .btn.lg { border-radius: 999px; }
.btn.sm, .btn.xs { border-radius: 999px; }
.input { border-radius: 10px; }
.seg { border-radius: 999px; } .seg button { border-radius: 999px; }
.toggle, .pick { border-radius: 999px; }
.rate-btn { border-radius: 12px; }
.bd, .tile, .card, .edit-row, .rate, .nutri-grid > div { border-radius: 14px; }
dialog.sheet { border-radius: 22px 22px 0 0; } @media (min-width: 720px) { dialog.sheet { border-radius: 20px; } }
dialog.modal { border-radius: 16px; }

/* student: a frosted top bar, bigger photos that move a little */
.rail { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.dc-photo { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.dc-photo img { transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .dc:hover .dc-photo img { transform: scale(1.05); } }
.dc-name { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.rb { border-radius: 10px; width: 48px; height: 40px; transition: transform .15s, background .2s, color .2s; }
.rb.on { transform: translateY(-1px); }
.day { border-radius: 12px; }
.day[aria-pressed="true"] { background: #131211; }
.dc-flag, .dc-badge { border-radius: 999px; }

/* staff: warm paper behind white panels */
body[data-mode="admin"] { background: var(--warm); }
body[data-mode="admin"] .tile, body[data-mode="admin"] .card, body[data-mode="admin"] .bd, body[data-mode="admin"] .edit-row { background: #fff; border-color: #EAE5DC; }
.side { background: #fff; }
.tile.hero { background: #131211; border-radius: 18px; }
.tile-big { font-size: 3.2rem; }
.side .side-i.on { background: var(--warm); }
.link { text-decoration-color: var(--brand); }
.toast { width: max-content; }
body[data-mode="admin"] .tile.hero { background: #131211; border-color: #131211; color: #fff; }

/* ideas: a plain ranked list, one row per idea, the vote on the right */
.board { gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.board .bd, body[data-mode="admin"] .board .bd { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 2px; align-items: start; gap: 14px; }
.board .bd-rank { width: 22px; height: auto; background: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; display: block; padding-top: 3px; text-align: left; }
.board .bd-text { font-weight: 650; font-size: 1.05rem; line-height: 1.35; }
.board .bd-text .status { margin-left: 10px; vertical-align: 2px; }
.board .bd-reply { display: block; background: none; padding: 0; margin-top: 4px; font-size: .92rem; color: var(--ink-2); }
.board .bd-reply strong { color: var(--ink); font-weight: 650; }
.board .bd-meta { margin-top: 6px; }
.status { font-size: .72rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.status.s-planned { background: #FBEBD3; color: #7A4A0A; }
.status.s-on_menu { background: #DDF0E3; color: #1B6A3C; }
.status.s-not_now { background: var(--bg-2); color: var(--ink-2); }
.vote-btn, .bd-count { min-width: 56px; padding: 8px 8px 7px; border-radius: 8px; border: 1px solid var(--line-2, #CFCAC1); background: #fff; color: var(--ink); gap: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.vote-btn .i, .bd-count .i { width: 16px; height: 16px; color: var(--ink-2); }
.vote-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.vote-btn[aria-pressed="true"] .i { color: #fff; }
.suggest { margin-top: 36px; }
.suggest h2 { font-size: 1.1rem; font-family: var(--font); font-weight: 700; margin: 0 0 12px; }
.suggest .idea-form { display: grid; gap: 10px; margin: 0; }
.suggest .idea-form .btn { width: 100%; justify-content: center; }
.suggest .idea-form .btn:disabled { background: #A19D96; color: #fff; opacity: 1; }
.replying { margin: 0 0 14px; padding: 12px 14px; background: var(--bg-2); border-radius: 8px; display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.replying .i { width: 16px; height: 16px; margin-top: 3px; flex: none; color: var(--ink-2); }
.replying small { display: block; font-size: .75rem; font-weight: 650; color: var(--ink-2); margin-bottom: 2px; }
.reply-to { font-size: .88rem; color: var(--ink-2); margin: 2px 0 6px; font-style: normal; }
.reply-to::before { content: ""; }

/* student top bar: everything fits at phone width, school name wraps instead of cutting off */
.st-school { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 480px) {
  .rail { padding-left: 8px; padding-right: 8px; gap: 0; }
  .rail-mark { margin-right: 4px; }
  .rail-list { min-width: 0; }
  .rail-i { padding: 0 9px; }
  .rail-t { font-size: .88rem; }
  .rail-me { margin-left: 2px; flex: none; }
}
/* staff: a single day's waste isn't a full-width block */
.spark span { max-width: 28px; }
.spark { gap: 6px; }
.board.compact .bd { padding: 10px 2px; align-items: center; }
.board.compact .bd-count { min-width: 44px; padding: 5px 6px; }
.board.compact { margin-top: 0; }
@media (min-width: 560px) { .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* phone widths: segmented controls stay on one row, idea tools don't balloon */
@media (max-width: 520px) {
  .seg { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { padding: 8px 12px; white-space: nowrap; flex: none; }
  .seg.mini button { padding: 4px 9px; font-size: .76rem; }
  .bd-tools { gap: 6px; margin-top: 8px; }
  .bd-tools .seg { margin: 0; }
  .board .bd { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; }
}
@media (max-width: 520px) {
  .seg.mini { flex-wrap: wrap; overflow: visible; border-radius: 12px; }
  .seg.mini button { min-height: 30px; }
  .bd-tools .btn.sm { min-height: 34px; padding: 0 12px; }
  .board .bd-count, .board .vote-btn { min-width: 48px; }
}
@media (max-width: 520px) {
  .bd-tools .seg.mini { flex-wrap: nowrap; padding: 2px; }
  .bd-tools .seg.mini button { padding: 3px 7px; font-size: .72rem; min-height: 28px; }
  .bd-tools .btn.ghost.sm { padding: 0 8px; }
}

/* school name: room for descenders (the g in "High") */
.st-school { line-height: 1.2; padding-bottom: .08em; }

/* kitchen replies to a comment: who sees it, and what it answers */
.feed-r { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: .88rem; color: var(--ink-2); }
.feed-r .i { width: 14px; height: 14px; margin-top: 3px; flex: none; }
.feed-r strong { color: var(--ink); font-weight: 650; }
.reply-vis { border: 0; padding: 0; margin: 14px 0 4px; display: grid; gap: 8px; }
.reply-vis legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2, #CFCAC1); border-radius: 12px; cursor: pointer; }
.radio input { margin-top: 4px; accent-color: #131211; width: 18px; height: 18px; flex: none; }
.radio span { display: grid; gap: 2px; font-size: .92rem; color: var(--ink-2); }
.radio strong { color: var(--ink); }
.radio:has(input:checked) { border-color: #131211; background: #fff; }
.reply.mine { background: #FFF3EC; }
.only-you { margin-left: 6px; font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: #131211; color: #fff; text-transform: none; letter-spacing: 0; }
.reply-to { font-size: .88rem; color: var(--ink-2); margin: 2px 0 6px; }

/* menu presets */
.presets { max-height: 80dvh; overflow-y: auto; }
.preset-group { margin-top: 18px; }
.preset-group h3 { font-size: .95rem; margin: 0 0 8px; }
.preset-list { display: grid; gap: 8px; }
.preset { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2, #CFCAC1); border-radius: 12px; background: #fff; }
.preset-main { flex: 1; min-width: 0; }
.preset-n { font-weight: 700; overflow-wrap: anywhere; }
.preset-s { font-size: .82rem; color: var(--ink-2); }
.veg-pick { margin-bottom: 6px; }
.form-err { color: var(--bad-t, #AE261F); min-height: 1.2em; font-size: .9rem; }
.reply-k .only-you { display: table; margin: 4px 0 2px; }
label.pick { cursor: pointer; }
label.pick:has(input:checked) { background: #131211; color: #fff; border-color: #131211; }
label.pick:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

/* small number box: room for descenders, no spinner arrows */
.input.sm { min-height: 44px; padding: 10px 14px; line-height: 1.4; }
.waste-form .input { width: 170px; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hidden-comments { margin-top: 14px; }
.muted-feed { opacity: .75; margin-top: 8px; }
/* ideas: number, text and vote line up on the middle */
.board .bd, body[data-mode="admin"] .board .bd { align-items: center; }
.board .bd-rank { padding-top: 0; }
.sim-note { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-2); margin: 6px 0 0; }
.sim-note .i { width: 14px; height: 14px; flex: none; }

/* dashboard: fold buttons, time-frame form, grouped charts */
.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.head-tools .seg { margin: 0; }
.fold-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2, #CFCAC1); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.fold-btn .i { width: 16px; height: 16px; transition: transform .2s; transform: rotate(180deg); }
.fold-btn.is-folded .i { transform: none; }
.more-btn { display: block; margin: 12px auto 0; }
.custom-range { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 6px 0 4px; }
.custom-range label { display: grid; gap: 4px; font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.custom-range .input.sm { width: auto; min-width: 150px; }
.spark-box { display: grid; gap: 6px; justify-items: end; }
.spark-box .seg { margin: 0; }
.spark-box .spark { width: 100%; }
@media (min-width: 900px) { .tile.waste .spark-box { grid-column: 2; grid-row: 1 / span 3; } }
@media (max-width: 899px) { .spark-box { justify-items: stretch; } }

/* food thrown away: bars with pounds on top, an average line and labeled axes */
.tile.waste { display: block; }
.waste-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 24px; }
.waste-top .waste-form { margin-top: 0; }
.waste-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 0 6px; }
.waste-chart-head .seg { margin: 0; }
.wchart { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 190px auto auto; column-gap: 8px; margin-top: 6px; }
.wy { position: relative; grid-row: 1; font-size: .72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wy span { position: absolute; right: 0; transform: translateY(50%); }
.wy .wy-t { top: -4px; bottom: auto; transform: none; font-weight: 700; }
.wplot { position: relative; grid-row: 1; margin-top: 18px; }
.wgrid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed #E1DCD2; }
.wcols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(3px, 1.2%, 12px); align-items: end; }
.wcol { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.wbar { width: 100%; max-width: 54px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 0; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.wv { font-size: .72rem; font-weight: 750; color: var(--ink); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.wx { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--ink-2); white-space: nowrap; }
.wx.off { visibility: hidden; } .wx.now { color: var(--ink); font-weight: 800; }
.wavg { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed #131211; pointer-events: none; z-index: 2; }
.wavg span { position: absolute; right: 0; bottom: 4px; font-size: .72rem; font-weight: 800; background: #fff; padding: 1px 7px; border-radius: 999px; border: 1px solid #131211; }
.wx-title { grid-column: 2; grid-row: 3; text-align: center; font-size: .74rem; font-weight: 650; color: var(--ink-2); margin: 26px 0 0; }
@media (max-width: 520px) { .wchart { grid-template-rows: 160px auto auto; } .wv { font-size: .64rem; } }
.wy .wy-t { top: -22px; }
.wavg span { bottom: auto; top: 5px; }
.wchart { grid-template-columns: 50px minmax(0, 1fr); }
.wy span { white-space: nowrap; }
