/* MenuGrams: the whole stylesheet, hand-written, no build step.
   Look: mockups/v4a.html (chain page) and v4a-item.html (item page). */

/* Plus Jakarta Sans, variable 400-800, latin subset, self-hosted (CSP has no
   font hosts). Copyright 2020 The Plus Jakarta Sans Project Authors
   (https://github.com/tokotype/PlusJakartaSans), SIL Open Font License 1.1,
   https://openfontlicense.org. Downloaded from Google Fonts. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F3F0EB; --card: #fff; --ink: #1E1B18; --ink2: #5E5750; --mute: #8C847B; --faint: #BDB5AB;
  --line: #EFEAE3; --line2: #E2DCD3; --tint: #FAF8F5;
  --pro: #5B5BF0; --carb: #F2A20C; --fat: #F0605D;
  --pro-bg: #EEEEFE; --carb-bg: #FEF4DF; --fat-bg: #FDECEB;
  --mint: #13A86B; --mint-d: #0E8A57; --mint-bg: #E3F6EC;
  --r: 22px;
  --shadow: 0 1px 2px rgba(40,30,20,.04), 0 6px 24px -8px rgba(40,30,20,.10);
  --shadow-s: 0 1px 2px rgba(40,30,20,.06);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.dp { background: var(--pro); } .dc { background: var(--carb); } .df { background: var(--fat); }
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; opacity: 0; }
.na { color: var(--faint); font-weight: 600; font-size: 12.5px; font-style: normal; }
.z { color: var(--faint); }

/* header */
.site { padding: 14px 0 4px; }
.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 36px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 20px; letter-spacing: -.03em; }
.logo b { font-weight: 800; } .logo span { font-weight: 500; color: var(--ink2); }
.logo svg { flex: none; }

main { padding-bottom: 40px; }

/* page head: badge, H1, pills, source */
.hero { padding: 14px 0 0; }
.crumbs { font-size: 13px; color: var(--mute); margin: 14px 0 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .crumbs { margin-top: 0; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 6px; color: var(--faint); }
.head { padding: 24px 24px 22px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 20px; align-items: center; }
.head > :not(.badge) { grid-column: 2; }
.badge { grid-row: 1/4; align-self: start; width: 72px; height: 72px; border-radius: 22px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; letter-spacing: -.04em; text-decoration: none; }
a.badge { width: 64px; height: 64px; border-radius: 20px; font-size: 19px; }
a.badge:hover { background: #000; }
.hero .badge { position: relative; }
.hero .badge::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 8px; background: var(--mint); border: 3px solid #fff; }
.hero .badge svg { position: absolute; right: 1px; bottom: 1px; z-index: 1; color: #fff; width: 14px; height: 14px; }
h1 { font-size: clamp(28px,4.4vw,42px); line-height: 1.05; letter-spacing: -.035em; margin: 0; font-weight: 800; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 12.5px; color: var(--ink2); white-space: nowrap; text-decoration: none; }
.pill b { color: var(--ink); font-weight: 800; }
a.pill:hover { background: var(--line2); }
.pill.date { background: var(--mint-bg); color: var(--mint-d); }
.src { font-size: 13.5px; color: var(--ink2); margin: 2px 0 0; }
.src a { color: var(--mint-d); font-weight: 700; text-underline-offset: 3px; }
.notice { margin: 6px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--carb-bg); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink2); margin: 16px 4px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .lb { display: inline-flex; width: 44px; height: 6px; border-radius: 9px; overflow: hidden; gap: 1.5px; }
.legend .lb i { display: block; height: 100%; }
.lp { width: 25%; background: var(--pro); } .lc { width: 35%; background: var(--carb); } .lf { width: 40%; background: var(--fat); }
.legend .note { color: var(--mute); font-weight: 500; }
@media (max-width: 767px) {
  .head { padding: 18px 16px 16px; gap: 2px 14px; border-radius: 20px; }
  .head > :not(.badge, h1) { grid-column: 1/-1; }
  .badge { grid-row: 1; align-self: center; width: 52px; height: 52px; border-radius: 17px; font-size: 16px; }
  a.badge { width: 48px; height: 48px; border-radius: 16px; font-size: 15px; }
  .hero .badge::after { width: 18px; height: 18px; border-radius: 7px; }
  .hero .badge svg { transform: scale(.8); right: -1px; bottom: -1px; }
  h1 { font-size: 28px; }
  .meta { margin-top: 12px; }
  .pill.cats { display: none; }
  .src { margin-top: 8px; font-size: 13px; }
}

/* home */
.intro { display: block; margin-top: 14px; }
.intro h1 { max-width: 760px; }
.lead { font-size: 16.5px; color: var(--ink2); margin: 10px 0 0; max-width: 680px; }
.intro .legend { margin: 18px 0 0; }
.intro .btn { margin-top: 8px; }
.sect { font-size: 21px; letter-spacing: -.025em; margin: 28px 4px 12px; font-weight: 800; }
.chains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.ch { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s; }
.ch:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(40,30,20,.04), 0 12px 28px -10px rgba(40,30,20,.18); }
.ch .badge { width: 52px; height: 52px; border-radius: 17px; font-size: 16px; flex: none; }
.cht { min-width: 0; }
.cht > b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.cht .meta { margin-top: 6px; }
.empty { padding: 28px 20px; margin-top: 16px; text-align: center; color: var(--ink2); }

/* chain page: the menu table */
.menu { margin: 16px 0 0; overflow: clip; }
.menu table { width: 100%; border-collapse: collapse; }
.menu thead th { position: sticky; top: var(--th, 0px); z-index: 2; vertical-align: bottom; background: #fff; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); text-align: right; padding: 14px 8px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.menu thead th .dot { margin-right: 5px; vertical-align: 0; }
.menu thead th.name { text-align: left; padding-left: 20px; }
.menu thead th em { display: block; font-style: normal; text-transform: none; font-weight: 500; letter-spacing: 0; color: var(--faint); font-size: 11.5px; margin-top: 1px; }
tbody.cat th { text-align: left; padding: 26px 20px 10px; font-size: 16px; font-weight: 800; letter-spacing: -.015em; border-bottom: 1px solid var(--line2); }
tbody.cat th small { font-weight: 600; color: var(--mute); font-size: 12px; margin-left: 8px; letter-spacing: 0; }
tbody.cat:first-of-type th { padding-top: 18px; }
tr.row > * { padding: 12px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 600; font-size: 14.5px; vertical-align: middle; }
tr.row { transition: background .15s; }
tr.row:hover > * { background: #FBFAF8; }
tbody:last-child tr.row:last-child > * { border-bottom: 0; }
tr.row > .name { text-align: left; padding-left: 20px; white-space: normal; min-width: 180px; }
tr.row > :is(.so, .cf):last-child { padding-right: 20px; }
.iname { font-weight: 700; line-height: 1.3; display: block; font-size: 14.5px; letter-spacing: -.005em; }
.iname a { text-decoration: none; } .iname a:hover { text-decoration: underline; text-underline-offset: 3px; }
.isub { display: flex; align-items: center; gap: 4px 8px; margin-top: 5px; min-width: 0; flex-wrap: wrap; }
.vn { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--line2); border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.serv { font-size: 12px; color: var(--mute); font-weight: 500; white-space: nowrap; }
.others { display: block; margin-top: 4px; font-size: 12px; color: var(--mute); font-weight: 500; }
/* our estimate, not the chain's figures (In-N-Out secret menu) */
.est { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 7px; border-radius: 7px; background: var(--carb-bg); color: #8A5A00; font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; }
.mb { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--line); width: 100%; gap: 1.5px; }
.mb i { display: block; height: 100%; }
.mb i:nth-child(1) { width: var(--p); background: var(--pro); }
.mb i:nth-child(2) { width: var(--c); background: var(--carb); }
.mb i:nth-child(3) { width: var(--f); background: var(--fat); }
td.cal { font-size: 16px; font-weight: 800; min-width: 74px; letter-spacing: -.01em; }
td.cal .mb { width: 60px; margin: 6px 0 0 auto; height: 5px; }
td .u { font-size: 11px; color: var(--mute); font-weight: 500; margin-left: 1px; }
.mlab { display: none; }
@media (min-width: 768px) { td .u { display: none; } }

/* phones: each row is a card */
@media (max-width: 767px) {
  .menu { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; margin-top: 12px; }
  .menu table, .menu tbody { display: block; }
  .menu thead { display: none; }
  tbody.cat tr { display: block; }
  tbody.cat th { display: flex; align-items: baseline; flex-wrap: wrap; padding: 20px 4px 10px; border: 0; font-size: 18px; }
  tbody.cat:first-of-type th { padding-top: 8px; }
  tr.row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; background: #fff; border-radius: 18px; padding: 14px 12px 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
  tr.row:hover > * { background: transparent; }
  tr.row > * { display: block; border: 0; padding: 0; text-align: left; min-width: 0; }
  tr.row > .name { grid-column: 1/4; grid-row: 1; min-width: 0; padding: 0 0 4px; }
  .mlab { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--ink2); letter-spacing: 0; margin-bottom: 1px; }
  .iname { font-size: 15px; }
  td.cal { grid-column: 4; grid-row: 1; text-align: right; font-size: 21px; line-height: 1.05; min-width: 0; }
  td.cal .mlab { display: block; font-size: 10px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
  td.cal .mb { width: 100%; max-width: 72px; margin-top: 8px; }
  tr.row > .p, tr.row > .c, tr.row > .f, tr.row > .so { grid-row: 2; border-radius: 12px; padding: 7px 9px 8px; font-size: 15.5px; font-weight: 800; background: var(--bg); color: var(--ink); }
  tr.row > .p { grid-column: 1; background: var(--pro-bg); }
  tr.row > .c { grid-column: 2; background: var(--carb-bg); }
  tr.row > .f { grid-column: 3; background: var(--fat-bg); }
  tr.row > .so { grid-column: 4; padding-right: 9px; }
  tr.row > * .z { color: var(--mute); }
  tr.row > .s, tr.row > .fi, tr.row > .su { grid-row: 3; align-self: center; font-size: 13.5px; font-weight: 700; padding: 4px 2px 0 9px; }
  tr.row > .s { grid-column: 1; } tr.row > .fi { grid-column: 2; } tr.row > .su { grid-column: 3; }
  tr.row > .s .mlab, tr.row > .fi .mlab, tr.row > .su .mlab { color: var(--mute); font-weight: 500; }
  /* caffeine (Starbucks): a line of its own under the card */
  tr.row > .cf { grid-column: 1/4; grid-row: 4; font-size: 13.5px; font-weight: 700; padding: 2px 2px 0 9px; }
  tr.row > .cf .mlab { display: inline; color: var(--mute); font-weight: 500; margin: 0 6px 0 0; }
  tr.row > .cf:has(.na) { display: none; } /* food: a line saying n/a is noise */
}

/* item page */
.main { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; padding: 16px 0 0; }
@media (min-width: 900px) { .main { grid-template-columns: minmax(0,1fr) 360px; align-items: start; } }
.panel { padding: 22px; }
.lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 10px; }
.seg { display: flex; background: var(--bg); border-radius: 16px; padding: 4px; gap: 4px; }
.seg label { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 12px; min-height: 52px; padding: 6px 8px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ink2); transition: background .2s, color .2s, box-shadow .2s; line-height: 1.2; min-width: 0; }
.seg label small { display: block; font-size: 11.5px; font-weight: 600; color: var(--mute); margin-top: 2px; white-space: nowrap; }
.seg label:hover { color: var(--ink); }
/* many styles (Chick-fil-A Frosted Sodas, Gallon Beverages): chips that wrap */
.seg.many { flex-wrap: wrap; }
.seg.many label { flex: 1 1 150px; min-height: 0; padding: 8px 10px; font-size: 13.5px; }
.big { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 22px 0 14px; }
.kcal { font-size: 58px; font-weight: 800; letter-spacing: -.045em; line-height: .9; }
.kcal small { font-size: 16px; font-weight: 700; color: var(--mute); letter-spacing: 0; margin-left: 6px; }
.kcal .na { font-size: 40px; }
.big .serv { font-size: 13px; font-weight: 600; text-align: right; }
.panel .mb { height: 12px; gap: 2px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.tile { border-radius: 16px; padding: 10px 12px 11px; }
.tile.p { background: var(--pro-bg); } .tile.c { background: var(--carb-bg); } .tile.f { background: var(--fat-bg); }
.tile .h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.tile .v { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 2px; }
.tile .v small { font-size: 13px; font-weight: 700; color: var(--mute); margin-left: 1px; letter-spacing: 0; }
.tile .v .na { font-size: 16px; }
.tile .pc { font-size: 12px; color: var(--ink2); font-weight: 600; }
.tile .pc b { color: var(--ink); }
.cmp { margin: 18px 0 0; padding: 12px 14px; background: var(--tint); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; color: var(--ink2); line-height: 1.55; }
.cmp b { color: var(--ink); }
.cmp > b:first-child { margin-right: 4px; }
.cmp .on { color: var(--ink); font-weight: 700; background: #fff; border-radius: 6px; padding: 1px 5px; box-shadow: var(--shadow-s); }
.cmp .na { font-size: inherit; }
.cta { display: flex; gap: 10px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 15px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { background: #000; } .btn:active { transform: scale(.98); }
@media (max-width: 767px) {
  .panel { padding: 18px 16px; }
  .cta .btn { width: 100%; }
  .kcal { font-size: 50px; }
  .tile .v { font-size: 21px; }
}

/* the size switcher works without JS: a radio per size before the panel and
   the label; the checked one shows its blocks. Room for 24 sizes (Chick-fil-A
   Gallon Beverages has 21). */
.multi .vp { display: none; }
#size-0:checked ~ * .v0, #size-1:checked ~ * .v1, #size-2:checked ~ * .v2, #size-3:checked ~ * .v3, #size-4:checked ~ * .v4, #size-5:checked ~ * .v5, #size-6:checked ~ * .v6, #size-7:checked ~ * .v7, #size-8:checked ~ * .v8, #size-9:checked ~ * .v9, #size-10:checked ~ * .v10, #size-11:checked ~ * .v11, #size-12:checked ~ * .v12, #size-13:checked ~ * .v13, #size-14:checked ~ * .v14, #size-15:checked ~ * .v15, #size-16:checked ~ * .v16, #size-17:checked ~ * .v17, #size-18:checked ~ * .v18, #size-19:checked ~ * .v19, #size-20:checked ~ * .v20, #size-21:checked ~ * .v21, #size-22:checked ~ * .v22, #size-23:checked ~ * .v23 { display: block; }
#size-0:checked ~ .panel label[for=size-0], #size-1:checked ~ .panel label[for=size-1], #size-2:checked ~ .panel label[for=size-2], #size-3:checked ~ .panel label[for=size-3], #size-4:checked ~ .panel label[for=size-4], #size-5:checked ~ .panel label[for=size-5], #size-6:checked ~ .panel label[for=size-6], #size-7:checked ~ .panel label[for=size-7], #size-8:checked ~ .panel label[for=size-8], #size-9:checked ~ .panel label[for=size-9], #size-10:checked ~ .panel label[for=size-10], #size-11:checked ~ .panel label[for=size-11], #size-12:checked ~ .panel label[for=size-12], #size-13:checked ~ .panel label[for=size-13], #size-14:checked ~ .panel label[for=size-14], #size-15:checked ~ .panel label[for=size-15], #size-16:checked ~ .panel label[for=size-16], #size-17:checked ~ .panel label[for=size-17], #size-18:checked ~ .panel label[for=size-18], #size-19:checked ~ .panel label[for=size-19], #size-20:checked ~ .panel label[for=size-20], #size-21:checked ~ .panel label[for=size-21], #size-22:checked ~ .panel label[for=size-22], #size-23:checked ~ .panel label[for=size-23] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(40,30,20,.12); }
#size-0:focus-visible ~ .panel label[for=size-0], #size-1:focus-visible ~ .panel label[for=size-1], #size-2:focus-visible ~ .panel label[for=size-2], #size-3:focus-visible ~ .panel label[for=size-3], #size-4:focus-visible ~ .panel label[for=size-4], #size-5:focus-visible ~ .panel label[for=size-5], #size-6:focus-visible ~ .panel label[for=size-6], #size-7:focus-visible ~ .panel label[for=size-7], #size-8:focus-visible ~ .panel label[for=size-8], #size-9:focus-visible ~ .panel label[for=size-9], #size-10:focus-visible ~ .panel label[for=size-10], #size-11:focus-visible ~ .panel label[for=size-11], #size-12:focus-visible ~ .panel label[for=size-12], #size-13:focus-visible ~ .panel label[for=size-13], #size-14:focus-visible ~ .panel label[for=size-14], #size-15:focus-visible ~ .panel label[for=size-15], #size-16:focus-visible ~ .panel label[for=size-16], #size-17:focus-visible ~ .panel label[for=size-17], #size-18:focus-visible ~ .panel label[for=size-18], #size-19:focus-visible ~ .panel label[for=size-19], #size-20:focus-visible ~ .panel label[for=size-20], #size-21:focus-visible ~ .panel label[for=size-21], #size-22:focus-visible ~ .panel label[for=size-22], #size-23:focus-visible ~ .panel label[for=size-23] { outline: 2px solid var(--ink); outline-offset: 1px; }

/* Nutrition Facts label */
.nf { border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px 9px; font-size: 13.5px; line-height: 1.25; background: #fff; }
.nf h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.nf .sv { font-size: 13px; color: var(--ink2); padding: 4px 0 2px; }
.nf .ss { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; padding: 0 0 5px; gap: 8px; }
.nf .r10 { height: 9px; background: var(--ink); margin: 0 -12px; }
.nf .r5 { height: 5px; background: var(--ink); margin: 0 -12px; }
.nf .calrow { display: flex; justify-content: space-between; align-items: flex-end; padding: 4px 0 3px; }
.nf .calrow b { font-size: 12.5px; font-weight: 800; display: block; }
.nf .calrow strong { font-size: 42px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.nf .calrow strong .na { font-size: 24px; }
.nf .calrow .cl { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.nf .dvh { text-align: right; font-size: 11.5px; font-weight: 800; padding: 4px 0; border-bottom: 1px solid var(--ink); }
.nf .ln { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--ink); }
.nf .ln.sub { padding-left: 14px; }
.nf .ln.sub2 { padding-left: 28px; }
.nf .ln b { font-weight: 800; }
.nf .ln .dv { font-weight: 800; }
.nf .ln.last { border-bottom: 0; }
.nf .na { font-size: inherit; }
.nf .foot { font-size: 11px; color: var(--ink2); padding-top: 6px; line-height: 1.4; }

/* related items */
/* a build's parts (Chipotle) */
.parts { margin: 18px 0 0; padding: 20px 22px; }
.parts h2 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.parts p { margin: 0 0 10px; color: var(--ink2); font-size: 13.5px; }
.parts ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.parts li a, .parts li { font-size: 14px; font-weight: 600; }
.parts li { padding: 7px 12px; border: 1px solid var(--line2); border-radius: 11px; background: var(--tint); }
.parts li a { color: var(--ink); text-decoration: none; }
.parts li a:hover { color: var(--mint-d); }
.parts .cta { margin: 14px 0 0; }
.rel { margin: 28px 0 8px; }
.rel h2 { font-size: 21px; letter-spacing: -.025em; margin: 0 0 4px; font-weight: 800; }
.rel p { margin: 0 0 14px; color: var(--ink2); font-size: 13.5px; }
.rel p a { color: var(--mint-d); font-weight: 700; text-underline-offset: 3px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ri { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s; min-width: 0; }
.ri:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(40,30,20,.04), 0 12px 28px -10px rgba(40,30,20,.18); }
.ri b { font-size: 14px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.ri .s { font-size: 12px; color: var(--mute); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri .n { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.ri .n strong { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.ri .n strong small { font-size: 11.5px; color: var(--mute); font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.ri .n span { font-size: 12.5px; font-weight: 600; color: var(--ink2); display: inline-flex; align-items: center; gap: 5px; }
.ri .mb { height: 5px; gap: 1.5px; }
@media (max-width: 767px) {
  .rgrid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .ri { padding: 12px 13px; }
  .ri .n { flex-direction: column; gap: 0; }
}

/* chain page: the order builder (web/static/js/chain.js). Look: design/chain.html.
   Without JS the tools, the panel and the bar stay hidden and the table is
   the page; the script adds .live to #ob. */
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a.pill.go .dot { width: 8px; height: 8px; }
.ob { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
@media (min-width: 1024px) { .ob.live { grid-template-columns: minmax(0,1fr) 348px; align-items: start; } }
.ob.live .menu { margin-top: 0; }
.ob.live .others { display: none; }
.tools { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0 10px; }
.search { position: relative; }
.search input { width: 100%; height: 50px; border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow); padding: 0 44px 0 46px; font-size: 16px; font-weight: 500; outline: none; transition: box-shadow .15s; }
.search input::placeholder { color: var(--mute); }
.search input:focus { box-shadow: 0 0 0 3px rgba(30,27,24,.12), var(--shadow); }
.search input::-webkit-search-cancel-button { display: none; }
.search svg { position: absolute; left: 16px; top: 15px; }
.search .clr { position: absolute; right: 9px; top: 9px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink2); cursor: pointer; display: grid; place-items: center; }
.search .clr svg { position: static; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: #fff; border-radius: 999px; height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 600; color: var(--ink2); cursor: pointer; box-shadow: var(--shadow-s); white-space: nowrap; transition: background .15s, color .15s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); color: #fff; }
.chip small { font-weight: 600; opacity: .5; margin-left: 5px; font-size: 12px; }
.msort { display: none; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.msort select { appearance: none; -webkit-appearance: none; border: 0; background: #fff; border-radius: 12px; height: 36px; padding: 0 30px 0 12px; font-weight: 700; box-shadow: var(--shadow-s); background-image: linear-gradient(45deg,transparent 50%,#5E5750 50%), linear-gradient(135deg,#5E5750 50%,transparent 50%); background-position: right 15px center, right 11px center; background-size: 4px 4px; background-repeat: no-repeat; }
.msort select.on { background-color: var(--ink); color: #fff; background-image: linear-gradient(45deg,transparent 50%,#fff 50%), linear-gradient(135deg,#fff 50%,transparent 50%); }
.msort button { border: 0; background: #fff; border-radius: 12px; height: 36px; padding: 0 12px; cursor: pointer; font-weight: 700; font-size: 13px; box-shadow: var(--shadow-s); }
.sortbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.sortbar b { font-weight: 800; }
.sortbar button { margin-left: auto; border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 10px; height: 30px; padding: 0 12px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.sortbar button:hover { background: rgba(255,255,255,.24); }
.menu table.sortable thead th { padding: 0; }
.menu thead th button { all: unset; cursor: pointer; display: block; padding: 14px 8px 10px; width: 100%; box-sizing: border-box; text-align: inherit; transition: color .15s; }
.menu thead th button:hover { color: var(--ink); }
.menu thead th button:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; border-radius: 10px; }
.menu thead th.name button { padding-left: 20px; }
.menu thead th .si { display: inline-block; vertical-align: -1px; margin-right: 4px; opacity: 0; transition: opacity .15s; }
.menu thead th button:hover .si { opacity: .45; }
.menu thead th.name .si { margin: 0 0 0 5px; }
.menu thead th[aria-sort] { background: var(--tint); }
.menu thead th[aria-sort] button { color: var(--ink); }
.menu thead th[aria-sort] .si { opacity: 1; }
.menu thead th[aria-sort] em { color: var(--ink); font-weight: 700; }
.menu thead th[aria-sort]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.menu thead th.add { width: 54px; }
tr.row > td.on { background: var(--tint); }
tr.row:hover > td.on { background: #F6F3EE; }
tr.row > td.add { padding: 0 14px 0 4px; width: 54px; }
.ob.live tr.row > .so { padding-right: 8px; }
.size { appearance: none; -webkit-appearance: none; border: 1px solid var(--line2); background-color: #fff; background-image: linear-gradient(45deg,transparent 50%,#5E5750 50%), linear-gradient(135deg,#5E5750 50%,transparent 50%); background-position: right 13px center, right 9px center; background-size: 4px 4px; background-repeat: no-repeat; border-radius: 9px; height: 28px; padding: 0 26px 0 9px; font-size: 12.5px; font-weight: 600; max-width: 160px; min-width: 0; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; transition: border-color .15s; }
.size:hover { border-color: var(--faint); }
.size:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.addb { position: relative; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--mint-bg); color: var(--mint-d); cursor: pointer; display: grid; place-items: center; transition: transform .15s var(--ease), background .15s, color .15s; }
.addb:hover { background: var(--mint); color: #fff; }
.addb:active { transform: scale(.88); }
.addb.done { background: var(--mint); color: #fff; animation: pop .35s var(--ease); }
.addb:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.addb .q { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (min-width: 768px) { .addb .t { display: none; } }
.nores { padding: 44px 20px; text-align: center; color: var(--ink2); }
.nores b { color: var(--ink); }
.nores button { margin-top: 12px; border: 0; background: var(--bg); border-radius: 12px; height: 36px; padding: 0 14px; font-weight: 700; cursor: pointer; }
@media (max-width: 767px) {
  .msort { display: flex; }
  .tools { position: static; padding: 4px 0 6px; }
  .sortbar { border-radius: 14px; margin-bottom: 8px; padding: 8px 8px 8px 14px; }
  .isub:has(.size) { flex-wrap: nowrap; }
  .size { max-width: 100%; flex: 0 1 auto; }
  tr.row > td.on { background: transparent; }
  tr.row > .p.on, tr.row > .c.on, tr.row > .f.on, tr.row > .so.on { box-shadow: inset 0 0 0 2px var(--ink); }
  tr.row > .cal.on, tr.row > .s.on, tr.row > .fi.on, tr.row > .su.on, tr.row > .cf.on { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  tr.row > .p.on { background: var(--pro-bg); } tr.row > .c.on { background: var(--carb-bg); } tr.row > .f.on { background: var(--fat-bg); } tr.row > .so.on { background: var(--bg); }
  tr.row > td.add { grid-column: 4; grid-row: 3; justify-self: end; align-self: end; padding: 4px 0 0; width: auto; }
  .ob.live tr.row > .so { padding-right: 9px; }
  .addb { width: auto; padding: 0 14px; gap: 6px; display: flex; align-items: center; font-weight: 700; font-size: 13.5px; }
}

/* the order panel */
.side { display: flex; flex-direction: column; gap: 16px; }
.order { padding: 20px 18px 18px; display: flex; flex-direction: column; min-height: 0; }
@media (min-width: 1024px) { .side { align-self: stretch; } .order { position: sticky; top: 16px; z-index: 3; max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin; } }
.ohead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ohead h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; font-weight: 800; }
.ohead .cnt { background: var(--bg); border-radius: 99px; min-width: 26px; height: 24px; padding: 0 8px; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; transition: background .2s, color .2s; }
.ohead .cnt.has { background: var(--ink); color: #fff; }
.ohead .clear { margin-left: auto; border: 0; background: none; color: var(--mute); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 9px; }
.ohead .clear:hover { color: var(--fat); background: var(--fat-bg); }
.ohead .x { display: none; margin-left: auto; border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; place-items: center; }
.ohead .clear + .x { margin-left: 0; }
.ohead .clear[hidden] + .x { margin-left: auto; }
.oempty { border: 1.5px dashed var(--line2); border-radius: 18px; padding: 20px 16px 16px; text-align: center; color: var(--ink2); font-size: 13.5px; margin-bottom: 14px; }
.oempty svg { display: block; margin: 0 auto 10px; }
.oempty b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 3px; letter-spacing: -.01em; }
.oempty p { margin: 0; line-height: 1.45; }
.olist { list-style: none; margin: 0 0 14px; padding: 0; }
.olist:empty { display: none; }
.olist li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.olist li.in { animation: slide .3s var(--ease); }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } }
.olist li:last-child { border-bottom: 0; }
.oname { font-weight: 700; font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oname a { text-decoration: none; } .oname a:hover { text-decoration: underline; text-underline-offset: 3px; }
.osize { font-size: 12px; color: var(--mute); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocal { font-weight: 800; font-size: 14px; text-align: right; }
.ocal small { font-size: 11px; color: var(--mute); font-weight: 600; margin-left: 2px; }
.octl { grid-column: 1/-1; display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; background: var(--bg); border-radius: 10px; height: 30px; }
.qty button { border: 0; background: none; width: 30px; height: 30px; cursor: pointer; border-radius: 10px; display: grid; place-items: center; }
.qty button:hover { background: var(--line2); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; font-size: 13.5px; }
.omac { margin-left: auto; font-size: 11.5px; color: var(--mute); font-weight: 600; display: flex; gap: 8px; }
.omac span { display: inline-flex; align-items: center; gap: 4px; }
.omac .dot { width: 7px; height: 7px; border-radius: 2px; }
.rm { border: 0; background: none; color: var(--mute); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.rm:hover { background: var(--fat-bg); color: var(--fat); }
.order .nf { transition: opacity .2s; }
.order .nf.dim { opacity: .5; }
.nf h3 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.order .nf .calrow strong { font-size: 40px; }
.order .nf .calrow .cl { font-size: 25px; }
.nf .macro { padding: 9px 0 5px; }
.nf .macro .mb { height: 10px; }
.nf .mleg { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: var(--ink2); margin-top: 7px; }
.nf .mleg span { display: inline-flex; align-items: center; gap: 5px; }
.nf .mleg b { color: var(--ink); font-weight: 800; }
.order .nf .foot { border-top: 1px solid var(--ink); }
.share { margin-top: 12px; }
.share button { width: 100%; border: 0; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .1s; }
.share button:hover { background: #000; }
.share button:active { transform: scale(.98); }
.share button.ok { background: var(--mint); }
.share button:disabled { background: var(--line); color: var(--faint); cursor: default; }
.share p { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--mute); }

/* below 1024px the panel is a bottom sheet behind a bar with the total */
.bar, .scrim { display: none; }
@media (min-width: 1024px) { .grabber { display: none; } }
@media (max-width: 1023px) {
  .side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; transform: translateY(105%); transition: transform .32s var(--ease); max-height: 90vh; display: block; }
  .side .order { border-radius: 26px 26px 0 0; max-height: 90vh; overflow: auto; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); }
  body.open { overflow: hidden; }
  body.open .side { transform: none; }
  .ohead .x { display: grid; }
  .grabber { width: 40px; height: 5px; border-radius: 9px; background: var(--line2); margin: 0 auto 12px; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(30,27,24,.42); z-index: 25; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.open .scrim { opacity: 1; pointer-events: auto; }
  .bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; background: var(--ink); color: #fff; border: 0; border-radius: 20px; padding: 10px 10px 10px 16px; align-items: center; gap: 12px; cursor: pointer; box-shadow: 0 12px 32px -8px rgba(0,0,0,.45); text-align: left; transition: transform .2s; }
  .bar .bl, .bar .bcal, .bar .bsub { display: block; }
  .bar .bcal { font-size: 21px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
  .bar .bcal small { font-size: 12px; font-weight: 600; opacity: .65; margin-left: 3px; letter-spacing: 0; }
  .bar .bsub { font-size: 12px; opacity: .75; font-weight: 500; white-space: nowrap; }
  .bar .mb { width: 80px; background: rgba(255,255,255,.16); margin-left: auto; flex: none; }
  .bar .go { background: #fff; color: var(--ink); border-radius: 13px; height: 40px; padding: 0 14px; font-weight: 700; font-size: 13.5px; flex: none; display: inline-flex; align-items: center; gap: 6px; }
  .bar.empty .go { background: rgba(255,255,255,.14); color: #fff; }
  .bar.bump { animation: bump .4s var(--ease); }
  body.ordering footer { padding-bottom: 96px; }
}
@keyframes bump { 40% { transform: scale(1.035); } }
@media (max-width: 380px) { .bar .mb { display: none; } }
.toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%,-90px); background: var(--ink); color: #fff; padding: 10px 16px 10px 12px; border-radius: 14px; font-weight: 600; font-size: 13.5px; z-index: 50; transition: transform .3s var(--ease); display: flex; align-items: center; gap: 9px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
.toast i { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; flex: none; }
.toast.on { transform: translate(-50%,0); }

/* footer */
footer { border-top: 1px solid var(--line2); margin-top: 10px; }
footer .wrap { padding-top: 24px; padding-bottom: 32px; display: grid; gap: 10px; color: var(--ink2); font-size: 13.5px; }
footer p { margin: 0; max-width: 760px; }
footer .fl { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; color: var(--ink); }
footer .fl a { text-decoration: none; } footer .fl a:hover { text-decoration: underline; }
footer .fine { color: var(--mute); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* item page: add this size to an order; lists (/<chain>/high-protein) */
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line2); height: 44px; }
.btn.ghost:hover { background: var(--tint); }
.vp .cta { margin-top: 14px; }
.list td.ppc { color: var(--pro); font-weight: 800; }
@media (min-width: 768px) {
  .list tr.row > .rk, .list thead th.rk { width: 1%; padding-left: 20px; padding-right: 0; text-align: left; color: var(--mute); font-weight: 700; }
  .list tr.row > .name, .list thead th.name { padding-left: 12px; }
  .list thead th:last-child { padding-right: 20px; }
}
.listnote { margin: 14px 4px 0; font-size: 13.5px; color: var(--ink2); }
@media (max-width: 767px) {
  .list tr.row > .rk { grid-column: 1; grid-row: 3; padding: 4px 0 0 9px; font-size: 12.5px; }
  .list tr.row > .rk::before { content: "#"; }
  .list tr.row > .ppc { grid-column: 2/5; grid-row: 3; align-self: center; font-size: 13.5px; padding: 4px 2px 0 9px; display: flex; gap: 6px; align-items: baseline; }
  .list tr.row > .ppc .mlab { margin: 0; }
  .list tr.row > .ppc .u { margin-left: -5px; }
}

/* Item page: swaps priced in calories only (Taco Bell) */
.cust { margin: 18px 0 0; padding: 20px 22px; }
.cust h2 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.cust h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 16px 0 8px; }
.cust p { margin: 0 0 8px; color: var(--ink2); font-size: 13.5px; }
.cust .ctot { color: var(--ink); font-size: 15px; }
.cust .ctot b { font-size: 22px; font-weight: 800; }
.cust ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.cust li label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 12px; border: 1px solid var(--line2); border-radius: 11px; background: var(--tint); font-size: 14px; font-weight: 600; }
.cust select { font: inherit; font-size: 13px; font-weight: 600; padding: 5px 8px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); color: var(--ink); max-width: 60%; }
.cust details { margin: 16px 0 0; }
.cust summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--mint-d); margin: 0 0 10px; }
