/* Lite Life — a food pack: the front with a die-cut window, an ingredients line for navigation, a Fit Facts label, a
   supermarket shelf label, a taste test of three cups, serving sizes, a folded package leaflet, a packing list and the
   back of the pack. Fonts: Afacad (label and text), Cardo (the leaflet). */
@font-face { font-family: "Afacad"; src: url("../assets/fonts/Afacad-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Afacad"; src: url("../assets/fonts/Afacad-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Afacad"; src: url("../assets/fonts/Afacad-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../assets/fonts/Cardo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../assets/fonts/Cardo-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../assets/fonts/Cardo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --carton: #F4F1EA; --white: #FFFFFF; --ink: #15181F; --navy: #1D2B4F; --navy2: #15203B; --lime: #B9E85A; --lime2: #DDF5A9;
  --green: #2E9F5B; --green2: #23804A; --orange: #FF7A1A; --orange2: #E5620A; --grey: #5F636C; --soft: #E7E2D6; --line: #D5CFC0;
  --sans: "Afacad", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Cardo", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--carton); color: var(--ink); font: 400 18px/1.55 var(--sans); }
img { max-width: 100%; }
a { color: var(--navy); }
code, pre { font-family: var(--mono); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn { font: 600 16px var(--sans); border: 2px solid var(--navy); background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { background: var(--navy2); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--lime2); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: wait; }
.msg { font-size: 15px; color: var(--green2); margin: 0; }
.msg.err { color: #B4321F; }
.lbl { font: 700 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 0 0 8px; }
.lbl.light { color: #C8CDD8; }
.tw { overflow-x: auto; max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------------------------------------------------------------- 1. the front of the pack */
.front { background: var(--white); border-bottom: 10px solid var(--lime); position: relative; overflow: hidden; }
.front::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--navy) 0 26px, transparent 26px 34px); opacity: .9; }
.fr-in { max-width: 1240px; margin: 0 auto; padding: 72px 28px 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.fr-brand { font: 600 15px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green2); margin: 0 0 10px; }
.front h1 { margin: 0; line-height: .82; font-weight: 700; }
.w-lite { display: block; font: 700 clamp(96px, 15vw, 210px)/.82 var(--sans); color: var(--navy); letter-spacing: -.035em; }
.w-life { display: block; font: italic 400 clamp(64px, 9vw, 130px)/1 var(--serif); color: var(--green); margin: -6px 0 0 6px; }
.fr-claim { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.3; max-width: 30ch; margin: 22px 0 22px; }
.fr-q { border-left: 6px solid var(--lime); padding: 4px 0 4px 16px; }
.fr-ql { margin: 0; font-size: 15px; color: var(--grey); }
.fr-qq { margin: 2px 0 0; font: italic 400 21px/1.35 var(--serif); }
.fr-window { position: relative; background: var(--carton); border-radius: 46px; padding: 28px 30px 30px; box-shadow: inset 0 0 0 10px var(--white), inset 0 0 0 12px var(--line); }
.fr-bars { display: flex; flex-wrap: wrap; gap: 7px 5px; align-content: flex-start; }
.fr-bars i { display: block; height: 8px; background: #CCC6B6; border-radius: 4px; max-width: 100%; }
.fr-bars i.on { background: var(--green); box-shadow: 0 0 0 3px var(--lime2); }
.burst { position: absolute; right: -14px; top: -18px; width: 168px; height: 168px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center;
  clip-path: polygon(50% 0, 59% 12%, 73% 5%, 76% 20%, 91% 18%, 87% 33%, 100% 40%, 90% 51%, 100% 62%, 86% 68%, 90% 83%, 75% 81%, 71% 96%, 58% 87%, 50% 100%, 41% 87%, 28% 96%, 24% 81%, 10% 83%, 13% 68%, 0 62%, 10% 51%, 0 40%, 13% 33%, 9% 18%, 24% 20%, 27% 5%, 41% 12%); transform: rotate(8deg); }
.burst span { font: 600 15px/1.1 var(--sans); max-width: 92px; }
.burst b { display: block; font: 700 36px/1 var(--sans); }
.ingredients { max-width: 1240px; margin: 0 auto; padding: 0 28px 34px; }
.ingredients p { margin: 0; font-size: 17px; line-height: 1.7; border-top: 2px solid var(--ink); padding-top: 12px; max-width: 100ch; }
.ingredients b { text-transform: uppercase; letter-spacing: .06em; }
.ingredients a { color: var(--ink); font-weight: 600; text-decoration-color: var(--lime); text-decoration-thickness: 4px; text-underline-offset: 3px; }
.ingredients a:hover { background: var(--lime2); }

/* ---------------------------------------------------------------- panels */
.panel { max-width: 1240px; margin: 0 auto; padding: 76px 28px 40px; }
.panel > * { min-width: 0; }
.pn-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.pn-no { font: 700 18px var(--sans); width: 38px; height: 38px; border-radius: 50%; background: var(--lime); display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.pn-head h2 { margin: 0; font: 700 clamp(34px, 4.4vw, 52px)/1 var(--sans); letter-spacing: -.01em; color: var(--navy); }
.home { margin-left: auto; font-size: 15px; font-weight: 600; }
.pn-lede { max-width: 72ch; margin: 0 0 26px; font-size: 19px; }

/* ---------------------------------------------------------------- 2. the fitter */
.fit-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; }
.fit-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld > span { font-size: 15px; font-weight: 600; color: var(--grey); }
.fld select, .fld input[type=text], .fld textarea { font: 400 17px var(--sans); border: 2px solid var(--ink); border-radius: 10px; padding: 9px 12px; background: var(--white); color: var(--ink); min-width: 0; width: 100%; }
.fld textarea { font: 400 15px/1.5 var(--serif); resize: vertical; }
.fld input[type=range] { accent-color: var(--green); width: 100%; }
.fld-note { margin: -6px 0 0; font-size: 14px; color: var(--grey); }
.fld-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.grow { flex: 1 1 200px; }
.seg { border: 0; padding: 0; margin: 0; display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { font: 600 15px var(--sans); border: 0; background: var(--white); padding: 7px 14px; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 400 14px/1.3 var(--sans); border: 1.5px solid var(--line); background: var(--white); border-radius: 14px; padding: 5px 10px; cursor: pointer; text-align: left; color: var(--ink); max-width: 100%; }
.chip:hover { border-color: var(--green); background: var(--lime2); }
.chk { display: flex; gap: 8px; align-items: center; font-size: 16px; }
.chk input { accent-color: var(--green); width: 18px; height: 18px; }
/* the Fit Facts label: a nutrition panel */
.facts { background: var(--white); border: 2px solid var(--ink); padding: 10px 14px 14px; font-family: var(--sans); position: sticky; top: 16px; }
.fx-title { margin: 0; font: 700 40px/1 var(--sans); letter-spacing: -.01em; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.fx-serv { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-size: 17px; }
.fx-serv:first-of-type { margin-top: 4px; }
.fx-serv b { font-weight: 700; }
.fx-amt { margin: 6px 0 0; border-top: 12px solid var(--ink); padding-top: 3px; font: 700 14px var(--sans); }
.fx-rows { margin: 0; }
.fx-rows div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ink); padding: 4px 0; font-size: 17px; }
.fx-rows div:first-child { border-top: 5px solid var(--ink); }
.fx-rows dt { font-weight: 700; }
.fx-rows .sub dt { font-weight: 400; padding-left: 14px; }
.fx-rows dd { margin: 0; text-align: right; font-weight: 600; }
.fx-ing { margin: 0; border-top: 12px solid var(--ink); padding-top: 6px; font-size: 15px; line-height: 1.4; }
.fx-why { margin: 8px 0 0; padding-left: 0; list-style: none; counter-reset: none; max-height: 330px; overflow: auto; border-top: 1px solid var(--ink); }
.fx-why li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.35; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; }
.fx-why li::before { content: attr(value); font-weight: 700; color: var(--green2); grid-row: 1 / span 2; min-width: 2.2em; }
.fx-why li span { font-family: var(--serif); }
.fx-why li small { color: var(--grey); font-size: 13px; }
.served { margin-top: 26px; }
.sv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sv-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sv-text { margin-top: 10px; background: var(--white); border-radius: 18px; border: 2px solid var(--line); padding: 18px 22px; font: 400 17px/1.65 var(--serif); max-height: 380px; overflow: auto; }
.sv-text p { margin: 0 0 10px; }
.sv-text mark { background: var(--lime2); box-shadow: 0 2px 0 var(--green); color: var(--ink); }
.cut { color: var(--orange2); font-weight: 700; }
.gone { font: 600 13px var(--sans); color: var(--grey); background: var(--soft); border-radius: 8px; padding: 1px 7px; white-space: nowrap; }

/* ---------------------------------------------------------------- 3. the shelf label */
.shelf-label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 200px; background: var(--white); border: 2px solid var(--ink); border-top: 12px solid var(--lime); }
.shelf-label > div { padding: 18px 20px; min-width: 0; }
.sl-name { border-right: 1px dashed var(--ink); }
.sl-t { margin: 0; font: 700 64px/1 var(--sans); color: var(--navy); letter-spacing: -.02em; }
.sl-n { margin: 4px 0 10px; font-size: 18px; }
.sl-unit { margin: 0; font-size: 14px; color: var(--grey); border-top: 1px solid var(--line); padding-top: 8px; }
.sl-unit b { color: var(--ink); }
.bars { display: flex; height: 64px; align-items: stretch; }
.bars i { display: block; background: var(--ink); }
.bars.small { height: 42px; margin-top: 18px; max-width: 260px; }
.sl-cl { margin: 8px 0 0; font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.sl-ca { display: block; font-size: 15px; word-break: break-all; margin: 2px 0 10px; }
.sl-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sl-price { background: var(--orange); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.sl-price span { font: 700 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.sl-price b { font: 700 30px/1.1 var(--sans); word-break: break-all; }
.sl-price sub { font-size: .55em; }
.avail { margin: 22px 0 0; }
.av-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.av-list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 600; }
.av-list a:hover { background: var(--lime2); }
.av-list img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--white); }
.av-list a.on-dark img { background: var(--ink); padding: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }
.tag { margin: 0; background: var(--lime); padding: 10px 16px 10px 26px; border-radius: 6px 22px 22px 6px; position: relative; min-width: 150px; }
.tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--carton); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tag:nth-child(2n) { transform: rotate(-1.5deg); } .tag:nth-child(3n) { transform: rotate(1.2deg); }
.tag span { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.tag b { font: 700 24px/1.1 var(--sans); }
.tag b.up { color: var(--green2); } .tag b.down { color: #B4321F; }
.tags-at { font-size: 14px; color: var(--grey); margin: 10px 0 0; }
.diecut { margin: 28px 0 0; background: var(--navy); border-radius: 28px; padding: 26px; }
.dc-window { position: relative; border-radius: 120px 120px 30px 30px; overflow: hidden; background: #0E1322; box-shadow: 0 0 0 6px rgba(255,255,255,.18), inset 0 0 0 2px rgba(255,255,255,.3); height: 520px; }
.dc-window iframe { width: 100%; height: 100%; border: 0; display: block; }
.dc-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #C8CDD8; font-size: 18px; background: #0E1322; transition: opacity .4s; }
.dc-wait.off { opacity: 0; pointer-events: none; }
.diecut figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #fff; margin-top: 14px; font-size: 16px; }
.diecut figcaption a { color: var(--lime); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.diecut svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- 4. the taste test */
.tt-ctl { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.tt-ctl .fld { flex: 0 1 270px; }
.tt-ctl .fld.grow { flex: 1 1 320px; }
.tt-ans { font-size: 18px; margin: 18px 0 14px; }
.tt-ans b { background: var(--lime2); padding: 0 6px; }
.cups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cup { background: var(--white); border: 2px solid var(--ink); border-radius: 0 0 46px 46px; padding: 16px 18px 26px; display: flex; flex-direction: column; min-width: 0; }
.cup-h { margin: 0; display: flex; flex-direction: column; gap: 4px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.cup-h b { font-size: 20px; }
.cup-v { font: 700 15px var(--sans); align-self: flex-start; padding: 2px 10px; border-radius: 999px; }
.cup.yes .cup-v { background: var(--green); color: #fff; } .cup.no .cup-v { background: var(--orange); color: #fff; }
.cup[data-m=litefit] { border-color: var(--green); box-shadow: 0 0 0 4px var(--lime2); }
.cup-t { font: 400 15px/1.55 var(--serif); margin: 10px 0; max-height: 260px; overflow: auto; flex: 1; }
.cup-t mark { background: var(--lime); }
.cup-f { margin: 0; font-size: 14px; color: var(--grey); text-align: center; }
.tt-sum { margin: 18px 0 0; font-size: 17px; max-width: 90ch; }

/* ---------------------------------------------------------------- 5. serving sizes */
.sv-chart { background: var(--white); border-radius: 24px; border: 2px solid var(--line); padding: 14px; }
.sv-chart svg { width: 100%; height: auto; display: block; }
.sv-chart .gl { stroke: var(--soft); stroke-width: 1.5; }
.sv-chart .ax { font: 400 15px var(--sans); fill: var(--grey); }
.sv-chart .lab { font-size: 16px; }
.legend { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 16px; }
.legend i { display: inline-block; width: 22px; height: 6px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.grid-t { border-collapse: collapse; width: 100%; background: var(--white); font-size: 16px; }
.grid-t th, .grid-t td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: right; white-space: nowrap; }
.grid-t th:first-child, .grid-t td:first-child { text-align: left; }
.grid-t thead th { border-bottom: 2px solid var(--ink); }

/* ---------------------------------------------------------------- 6. the package leaflet */
.leaf { background: #FFFEFA; color: #1E1E1E; font: 400 17px/1.6 var(--serif); padding: 36px 40px 30px; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(21,24,31,.08);
  background-image: linear-gradient(90deg, transparent calc(50% - 1px), rgba(21,24,31,.07) 50%, transparent calc(50% + 1px)), linear-gradient(transparent 33%, rgba(21,24,31,.035) 33.2%, transparent 33.6%, transparent 66.4%, rgba(21,24,31,.035) 66.6%, transparent 67%); }
.lf-top { border-bottom: 2px solid #1E1E1E; padding-bottom: 12px; margin-bottom: 18px; }
.lf-k { margin: 0; font: 700 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.leaf h3 { margin: 8px 0 6px; font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--serif); }
.lf-sub { margin: 0 0 8px; font-style: italic; }
.lf-what { margin: 0; font-size: 15px; }
.lf-cols { columns: 2 440px; column-gap: 46px; }
.lf-s { break-inside: avoid-column; margin: 0 0 18px; }
.lf-s:nth-child(4) { break-inside: auto; }
.leaf h4 { margin: 0 0 6px; font: 700 20px/1.25 var(--serif); display: flex; gap: 10px; align-items: baseline; }
.leaf h4 span { font: 700 16px var(--sans); background: #1E1E1E; color: #fff; min-width: 26px; height: 26px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.leaf p { margin: 0 0 10px; }
.leaf ul { margin: 0; padding-left: 20px; }
.leaf li { margin-bottom: 6px; }
.nc { background: var(--lime2); padding: 8px 12px; border-left: 4px solid var(--green); font-size: 16px; }
.lf-t { border-collapse: collapse; width: 100%; font: 400 15px var(--sans); margin: 10px 0 14px; break-inside: avoid; }
.lf-t caption { text-align: left; font: italic 400 15px var(--serif); margin-bottom: 4px; }
.lf-t th, .lf-t td { border-bottom: 1px solid #CFCAC0; padding: 4px 6px; text-align: right; white-space: nowrap; }
.lf-t th:first-child, .lf-t td:first-child { text-align: left; }
.lf-t thead th { border-bottom: 2px solid #1E1E1E; }
.lf-t tr.me td { font-weight: 700; background: var(--lime2); }
.recheck { margin: 6px 0 4px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.recheck .msg { color: var(--grey); font-family: var(--sans); }
.refs { padding-left: 22px; font-size: 15px; }
.refs a { word-break: break-word; }
.lf-foot { margin: 8px 0 0; font-size: 14px; font-style: italic; border-top: 1px solid #CFCAC0; padding-top: 8px; }

/* ---------------------------------------------------------------- 7. contents of the pack */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.packlist { border-collapse: collapse; width: 100%; background: var(--white); border: 2px solid var(--ink); font-size: 16px; }
.packlist th { text-align: left; font: 700 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; border-bottom: 5px solid var(--ink); }
.packlist td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.packlist td:nth-child(2) { white-space: nowrap; text-align: right; }
.packlist td:nth-child(3) { font: 13px var(--mono); color: var(--grey); white-space: nowrap; }
.packlist button, .packlist a { font: 600 16px var(--sans); border: 0; background: none; color: var(--navy); padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; word-break: break-all; }
.packlist small { display: block; color: var(--grey); font-size: 13px; }
.viewer { margin-top: 14px; border: 2px solid var(--ink); background: var(--white); }
.viewer-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-bottom: 2px solid var(--ink); background: var(--lime2); }
.viewer-bar span { font-size: 13px; color: var(--grey); flex: 1; word-break: break-all; }
.viewer-body { max-height: 520px; overflow: auto; }
.viewer-body .lines { margin: 0; padding: 10px 0; font-size: 13px; line-height: 1.5; counter-reset: ln; }
.viewer-body .lines span { display: block; padding: 0 12px 0 0; white-space: pre; counter-increment: ln; }
.viewer-body .lines span::before { content: counter(ln); display: inline-block; width: 44px; text-align: right; margin-right: 12px; color: #A5A8AE; }
.md { padding: 6px 18px 14px; font-size: 16px; }
.md table { border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.md th, .md td { border: 1px solid var(--line); padding: 3px 7px; }
.md pre { background: var(--carton); padding: 10px; overflow: auto; font-size: 13px; }
.md code { font-size: .9em; }
.dls { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.dls a { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; text-decoration: none; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.dls a:hover { background: var(--lime2); }
.dls svg { width: 22px; height: 22px; grid-row: 1 / span 2; align-self: center; color: var(--green2); }
.dls small { font: 12px var(--mono); color: var(--grey); word-break: break-all; }
.code { background: var(--ink); color: #E9F7CF; padding: 14px 16px; border-radius: 12px; overflow: auto; font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
.api { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--white); }
.api td { border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.api code { font-size: 13px; color: var(--navy); word-break: break-word; }

/* ---------------------------------------------------------------- 8. the back of the pack */
.backpack { background: var(--navy); color: #E7EAF2; margin-top: 60px; border-top: 12px solid var(--lime); }
.bp-in { max-width: 1240px; margin: 0 auto; padding: 40px 28px 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; }
.bp-t { margin: 0 0 12px; font: 700 34px/1.1 var(--sans); color: #fff; }
.bp-n { border-collapse: collapse; width: 100%; max-width: 420px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.bp-n caption { text-align: left; font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); padding-bottom: 6px; }
.bp-n th, .bp-n td { padding: 5px 10px; border-top: 1px solid var(--ink); text-align: left; font-size: 16px; }
.bp-n tr:first-child th, .bp-n tr:first-child td { border-top: 0; }
.bp-n td { text-align: right; font-weight: 700; }
.bp-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.bp-links a { color: #fff; font-weight: 600; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.bp-links .bars i { background: #fff; }
.bp-links .bars { background: var(--navy); }
.bp-small { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #B7BDCB; border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1000px) {
  .fr-in { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 56px; }
  .fit-grid, .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { position: static; }
  .shelf-label { grid-template-columns: minmax(0, 1fr); }
  .sl-name { border-right: 0; border-bottom: 1px dashed var(--ink); }
  .sl-price { padding: 14px; flex-direction: row; gap: 14px; }
  .cups { grid-template-columns: minmax(0, 1fr); }
  .cup-t { max-height: 180px; }
  .dc-window { height: 440px; border-radius: 70px 70px 22px 22px; }
  .bp-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .panel { padding: 60px 16px 30px; }
  .fr-in { padding: 46px 16px 30px; }
  .ingredients { padding: 0 16px 26px; }
  .burst { width: 128px; height: 128px; right: -8px; top: -26px; }
  .burst b { font-size: 28px; }
  .burst span { font-size: 13px; max-width: 76px; }
  .fr-window { padding: 22px 18px; border-radius: 30px; }
  .sl-t { font-size: 52px; }
  .tag { min-width: 0; flex: 1 1 140px; }
  .leaf { padding: 24px 18px; }
  .lf-t { font-size: 13px; }
  .lf-t th, .lf-t td { white-space: normal; padding: 4px 3px; }
  .packlist td:nth-child(3), .packlist th:nth-child(3) { display: none; }
  .lf-cols { columns: 1; }
  .diecut { padding: 14px; border-radius: 20px; }
  .dc-window { height: 400px; border-radius: 48px 48px 16px 16px; }
  .home { margin-left: 0; width: 100%; }
  .sv-text { padding: 14px; }
  .bp-in { padding: 34px 16px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dc-wait { transition: none; }
}
