/* 702greens.com/greens: the hub and one page per green. Phone first. White page, brand teal and lime, Work Sans,
   pill buttons, one Apple-grey band (the promise). Each green opens in a sheet on the hub (a side panel on a computer). */
:root {
  color-scheme: light;
  --bg: #ffffff; --soft: #f5f5f7; --ink: #152323; --head: #144444; --muted: #5d6b69; --line: #e2e9e6;
  --chip: #edf3f0; --chip-ink: #2c4a47; --lime: #a6ce3a; --lime-ink: #10302f; --night: #050807;
  --scrim: rgba(8, 22, 20, .48); --shadow: 0 12px 34px rgba(16, 44, 40, .16);
  --font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.locked { overflow: hidden; }
a { color: var(--head); }
button { font-family: var(--font); color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
img { max-width: 100%; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1120px; margin: 0 auto; }

/* Header */
.site { position: sticky; top: 0; z-index: 7; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #ffffff; }
.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.logo img { display: block; width: 128px; height: auto; }
.site nav { display: flex; gap: 16px; font-size: 14px; font-weight: 600; }
.site nav a { text-decoration: none; }
.site nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Hub */
.hub { display: grid; gap: 14px; padding-block: 18px 8px; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 44px); line-height: 1.05; letter-spacing: -.02em; color: var(--head); text-wrap: balance; }
.lede { margin: 0; max-width: 56ch; color: var(--muted); font-size: 16px; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 1px solid var(--line); background: #ffffff; border-radius: 999px; padding: 8px 13px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--head); border-color: var(--head); color: #ffffff; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: clip; background: #ffffff; }
.tile .open { display: grid; color: inherit; text-decoration: none; }
.tile img { display: block; width: 100%; aspect-ratio: 1 / 1; background: #ffffff; }
.fit-contain { object-fit: contain; }
.fit-cover { object-fit: cover; }
.tbody { display: grid; gap: 3px; padding: 10px 12px 2px; }
.tname { font-size: 16px; font-weight: 600; color: var(--head); }
.ttaste { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 11.5px; font-weight: 600; background: var(--chip); color: var(--chip-ink); border-radius: 999px; padding: 2px 8px; }
.chip.prem { background: var(--lime); color: var(--lime-ink); }
.tadd { margin-top: auto; padding: 8px 12px 12px; }
.addbtn { width: 100%; border: 1.5px solid var(--head); background: transparent; color: var(--head); border-radius: 999px; padding: 9px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.addbtn.big { padding: 13px; font-size: 13.5px; background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--head); border-radius: 999px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--chip); color: var(--head); font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper output { min-width: 2ch; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--head); font-variant-numeric: tabular-nums; }
.cap6 { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

/* A green: shared by the sheet and the green's own page */
.gallery { display: grid; gap: 10px; align-content: start; min-width: 0; }
.hero { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border: 0; padding: 0; border-radius: 16px; overflow: clip; background: #ffffff; cursor: zoom-in; }
.hero img, .hero video { display: block; width: 100%; height: 100%; }
.hero.single { box-shadow: inset 0 0 0 1px var(--line); }
.strip { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.thumb { flex: none; position: relative; width: 62px; height: 62px; border-radius: 12px; border: 1px solid var(--line); padding: 0; overflow: clip; background: #ffffff; cursor: pointer; }
.thumb img { display: block; width: 100%; height: 100%; }
.thumb[aria-pressed="true"] { outline: 2px solid var(--head); outline-offset: 2px; }
.play { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .58); display: grid; place-items: center; }
.play::before { content: ""; margin-left: 2px; border-left: 8px solid #ffffff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.info { display: grid; gap: 12px; align-content: start; min-width: 0; }
.gname { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; color: var(--head); text-wrap: balance; }
.intro { margin: 0; font-size: 16px; max-width: 52ch; }
.price { margin: 0; font-size: 13px; color: var(--muted); }
.lbl { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.uses { display: flex; flex-wrap: wrap; gap: 6px; }
.use { border: 1px solid var(--line); background: #ffffff; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; }
span.use { cursor: default; }
.use[aria-pressed="true"] { background: var(--head); border-color: var(--head); color: #ffffff; font-weight: 600; }
.keeps { margin: 0; font-size: 14.5px; }
.recipes { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.recipes::-webkit-scrollbar { display: none; }
.rcard { flex: none; width: 150px; border: 1px solid var(--line); border-radius: 14px; overflow: clip; background: #ffffff; padding: 0; text-align: left; cursor: pointer; }
.rcard img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rcard span { display: block; padding: 8px 10px 0; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--head); }
.rcard small { display: block; padding: 3px 10px 9px; font-size: 12px; color: var(--muted); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rel { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: clip; background: #ffffff; padding: 0 0 7px; font-size: 12.5px; font-weight: 600; text-align: center; text-decoration: none; color: var(--head); cursor: pointer; }
.rel img { display: block; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 6px; }

/* The green's own page */
.crumbs { font-size: 13px; color: var(--muted); padding-block: 14px 4px; }
.crumbs a { color: var(--muted); }
.product { display: grid; gap: 18px; padding-block: 8px 6px; }
@media (min-width: 860px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; } .product .gallery { position: sticky; top: 76px; } }
.product h1 { font-size: clamp(30px, 6vw, 42px); }
.buy { display: grid; gap: 8px; max-width: 420px; }
section.band { display: grid; gap: 10px; padding-block: 18px 4px; }
section.band h2 { margin: 0; font-size: 20px; color: var(--head); }
.promise { background: var(--soft); border-radius: 22px; padding: 22px 20px; display: grid; gap: 6px; margin-block: 22px 6px; }
.promise h2 { margin: 0; font-size: 22px; line-height: 1.15; color: var(--head); text-wrap: balance; }
.promise p { margin: 0; }
.pn { display: flex; justify-content: space-between; gap: 12px; padding-block: 20px 8px; font-size: 14px; font-weight: 600; }
.pn a { text-decoration: none; }

/* Footer */
footer.site-foot { border-top: 1px solid var(--line); margin-top: 28px; }
footer.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-block: 18px; font-size: 13px; color: var(--muted); }
footer.site-foot a { color: var(--muted); }

/* Box bar */
.boxbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #ffffff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 44, 40, .06);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.boxbar .in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.boxtext { flex: 1; min-width: 0; }
.boxtext strong { display: block; font-size: 14px; color: var(--head); }
.boxline { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout { flex: none; border-radius: 999px; background: var(--lime); color: var(--lime-ink); padding: 13px 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
/* Swipe up (or tap) the bar to see your box. */
.boxbar .handle { position: absolute; top: 5px; left: 50%; width: 36px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
.boxopen { flex: 1; min-width: 0; display: flex; align-items: center; border: 0; background: transparent; padding: 4px 0; text-align: left; cursor: pointer; touch-action: none; }
.boxopen strong { display: flex; align-items: center; gap: 6px; }
.chev { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--chip); color: var(--head); }
.chev svg { width: 11px; height: 11px; }
.count-pill { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--head); color: #ffffff; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
.boxrow .boxrow-open { min-width: 0; border: 0; background: transparent; padding: 4px 0; font: inherit; color: var(--muted); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* Your box, slid up */
#ov-box { z-index: 27; }
.cart { position: absolute; left: 0; right: 0; bottom: 0; max-height: min(86dvh, 760px); display: flex; flex-direction: column; background: #ffffff; border-radius: 22px 22px 0 0; box-shadow: var(--shadow); animation: rise .26s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 760px) { .cart { left: auto; top: 0; width: 420px; max-height: none; height: 100%; border-radius: 0; animation-name: slidein; } .cart-grab { visibility: hidden; } }
.cart-grab { display: grid; place-items: center; padding: 8px 0 2px; touch-action: none; }
.cart-grab span { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 4px max(12px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 760px) { .cart-head { padding-top: max(14px, env(safe-area-inset-top, 0px)); } }
.cart-head h2 { margin: 0; font-size: 22px; color: var(--head); }
.cart-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px)); }
.crow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.crow img { display: block; width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff; }
.cname { font-weight: 600; color: var(--head); }
.cmeta { font-size: 12.5px; color: var(--muted); }
.crow .stepper { width: 116px; }
.crow .stepper output { font-size: 14px; }
.cart-empty { margin: 8px 0 12px; color: var(--muted); }
.cart-foot { border-top: 1px solid var(--line); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 8px; }
.ctotal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.ctotal b { color: var(--head); font-size: 17px; }
.cart-go { display: block; text-align: center; border-radius: 999px; background: var(--lime); color: var(--lime-ink); padding: 14px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.cart-keep { justify-self: center; border: 0; background: transparent; color: var(--head); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 10px; }

/* Sheet (hub) */
.ov { position: fixed; inset: 0; z-index: 20; }
.scrim { position: absolute; inset: 0; background: var(--scrim); }
.x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--chip); color: var(--head); font-size: 16px; font-weight: 600; cursor: pointer; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: min(90dvh, 860px); display: flex; flex-direction: column; background: #ffffff; border-radius: 22px 22px 0 0; box-shadow: var(--shadow); animation: rise .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) { .sheet { left: auto; top: 0; width: 460px; height: 100%; border-radius: 0; animation-name: slidein; } .grab { visibility: hidden; } }
@keyframes slidein { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 760px) { .sheet-top { padding-top: max(8px, env(safe-area-inset-top, 0px)); } }
.sheet-top .x { justify-self: end; }
.count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; gap: 12px; align-content: start;
  padding: 2px max(16px, env(safe-area-inset-right, 0px)) 22px max(16px, env(safe-area-inset-left, 0px)); }
.slide .more-link { font-size: 14px; font-weight: 600; }
.sheet-foot { border-top: 1px solid var(--line); padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); display: grid; gap: 8px; background: #ffffff; }
.boxrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); padding-inline: 4px; }
.boxrow span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boxrow a { flex: none; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.addrow { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; }
.nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #ffffff; color: var(--head); font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; }
.addmain { width: 100%; border: 0; border-radius: 999px; background: var(--lime); color: var(--lime-ink); padding: 11px 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; display: grid; line-height: 1.2; }
.addmain small { font-size: 11.5px; font-weight: 600; opacity: .8; }

/* Recipe on top */
#ov-recipe { z-index: 25; }
.recipe { position: absolute; left: 0; right: 0; bottom: 0; height: min(93dvh, 880px); display: flex; flex-direction: column; background: #ffffff; border-radius: 22px 22px 0 0; box-shadow: var(--shadow); animation: rise .26s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 760px) { .recipe { left: auto; top: 0; width: 460px; height: 100%; border-radius: 0; animation-name: slidein; } }
.recipe-top { display: flex; align-items: center; padding: 8px 12px 6px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .recipe-top { padding-top: max(8px, env(safe-area-inset-top, 0px)); } }
.back { border: 0; background: transparent; color: var(--head); font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 8px 4px; }
.recipe-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; gap: 12px; align-content: start;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.recipe-body .rhero { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.recipe-body h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.15; color: var(--head); }
.recipe-body .sub { margin: 0; color: var(--muted); }
.recipe-body ul, .recipe-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tip { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; }

/* Full-screen photos */
#ov-media { z-index: 30; background: var(--night); color: #ffffff; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mtop { display: flex; align-items: center; justify-content: space-between; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); font-size: 13px; color: rgba(255, 255, 255, .82); }
#ov-media .x { background: rgba(255, 255, 255, .16); color: #ffffff; }
.mtrack { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.mtrack::-webkit-scrollbar { display: none; }
.mitem { flex: 0 0 100%; min-width: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 8px; }
.mitem img, .mitem video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.mitem.light { background: #ffffff; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
