/* Rich cards (site/cards.js): the pop-up card (.mm-card), the list row (.mm-row) and the brand card (.mm-brand).
   Palette and type come from style.css tokens (light and dark); the fallbacks keep a page without style.css legible.
   Phone first (390 px); .mm-card.mm-page turns into two columns from 900 px. No keyframes here: motion lives in motion.*. */
:root {
  --mm-t0: #E6F2DC; --mm-t1: #FDE4EB; --mm-t2: #FDE9D7;
  --mm-t0e: #8CBF7A; --mm-t1e: #E7A3B6; --mm-t2e: #DDA47A;
  --mm-stk: #4B3426; --mm-cream: #FFFDF7; --mm-soft: rgba(75, 52, 38, .06);
  --mm-data: "M PLUS 1 Code", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
:root[data-theme="dark"] {
  --mm-t0: #2B3D2F; --mm-t1: #3A2A31; --mm-t2: #3A2F26;
  --mm-t0e: #86B077; --mm-t1e: #C98DA0; --mm-t2e: #C99A72;
  --mm-stk: #10170F; --mm-cream: #FFF8EA; --mm-soft: rgba(255, 248, 234, .06);
}
.mm-card, .mm-row, .mm-brand { font-family: var(--font, ui-rounded, "Arial Rounded MT Bold", sans-serif); color: var(--ink, #3B2E27); -webkit-font-smoothing: antialiased; }
.mm-card *, .mm-row *, .mm-brand * { box-sizing: border-box; }
.mm-card p, .mm-brand p, .mm-card h3, .mm-brand h3, .mm-card h4, .mm-brand h4, .mm-card ul, .mm-brand ul, .mm-card dl, .mm-card dd { margin: 0; padding: 0; }
.mm-card ul, .mm-brand ul { list-style: none; }
.mm-card a, .mm-brand a { color: var(--deep, #3E6B33); }
.mm-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- card shell ---- */
.mm-card, .mm-brand { min-width: 0; display: flex; flex-direction: column; gap: 14px; background: var(--panel, #FFFDF7); border-radius: 26px; padding: 16px; width: 100%; max-width: 560px; }
.mm-main, .mm-more { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mm-sec { display: flex; flex-direction: column; gap: 8px; }
.mm-h { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6B5A4F); }

/* ---- verdict: the first line ---- */
.mm-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.mm-vday { color: var(--deep, #3E6B33); }
.mm-vtime { color: var(--ink, #3B2E27); }
.mm-vwhere { align-self: center; font-size: 14px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--foam, #E6F2DC); color: var(--deep, #3E6B33); white-space: nowrap; }
.mm-card.mm-v-now > .mm-top .mm-vday { color: var(--mm-cream); background: var(--focus, #D9667F); padding: 1px 12px; border-radius: 999px; font-size: 19px; align-self: center; }
.mm-card.mm-v-past > .mm-top .mm-vday, .mm-card.mm-v-cancelled > .mm-top .mm-vday { color: var(--muted, #6B5A4F); }

/* ---- hero ---- */
.mm-hero { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--mm-t0); isolation: isolate; }
.mm-hero > img, .mm-hero > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-hero-art { object-fit: cover; }
.mm-hero-photo { aspect-ratio: 4 / 3; border: 3px solid var(--mm-cream); box-shadow: 0 0 0 2px var(--line, #DCE7D0), var(--shadow, 0 8px 24px rgba(75,52,38,.10)); }
.mm-hero-blur { object-fit: cover; filter: blur(22px) saturate(1.15); transform: scale(1.25); }
.mm-hero-img { object-fit: contain; }
.mm-credit { position: absolute; right: 8px; bottom: 8px; z-index: 1; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 253, 247, .88); color: #3B2E27; }
.mm-hero-drawn svg { width: 100%; height: 100%; display: block; }
.mm-hero-collage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background-image: var(--pat, none); }
.mm-hero-collage.mm-t0 { background-color: var(--mm-t0); } .mm-hero-collage.mm-t1 { background-color: var(--mm-t1); } .mm-hero-collage.mm-t2 { background-color: var(--mm-t2); }
.mm-cups { display: flex; align-items: flex-end; gap: 6px; }
.mm-cupbox { width: 92px; height: 110px; display: grid; place-items: center; }
.mm-cupbox:nth-child(2) { transform: translateY(-8px) rotate(3deg); } .mm-cupbox:nth-child(3) { transform: rotate(-3deg); }
.mm-cupbox img, .mm-cupbox svg { width: 100%; height: 100%; object-fit: contain; }
.mm-sticker { font-size: 19px; font-weight: 800; padding: 4px 14px; border-radius: 14px; background: var(--mm-cream); color: #3B2E27; border: 2.5px solid var(--mm-stk); transform: rotate(-3deg); box-shadow: 0 3px 0 var(--mm-stk); max-width: 86%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- brand row ---- */
.mm-brandrow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mm-btxt { min-width: 0; flex: 1; }
.mm-bname { font-size: 19px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.mm-bmeta { font-size: 14px; color: var(--muted, #6B5A4F); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.mm-bmeta a { color: inherit; font-weight: 700; text-decoration: none; }
.mm-bmeta a:hover { text-decoration: underline; }
.mm-kind { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--mm-t2); color: var(--ink, #3B2E27); }
.mm-avatar { position: relative; flex: none; width: 50px; height: 50px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2.5px solid var(--mm-stk); background: var(--mm-t0); }
.mm-avatar.mm-t1 { background: var(--mm-t1); } .mm-avatar.mm-t2 { background: var(--mm-t2); }
.mm-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-initial { font-size: 21px; font-weight: 800; color: var(--ink, #3B2E27); }
.mm-conf { flex: none; align-self: center; font-size: 12px; font-weight: 800; letter-spacing: .01em; padding: 4px 10px; border-radius: 999px; border: 2px solid; cursor: help; white-space: nowrap; }
.mm-conf-confirmed { background: var(--foam, #E6F2DC); color: var(--deep, #3E6B33); border-color: var(--accent, #8CBF7A); }
.mm-conf-likely { background: var(--mm-t2); color: var(--ink, #3B2E27); border-color: var(--mm-t2e); }
.mm-conf-unsure { background: var(--mm-t1); color: var(--ink, #3B2E27); border-color: var(--mm-t1e); border-style: dashed; }
.mm-card .mm-desc, .mm-desc { font-size: 15.5px; line-height: 1.45; padding: 10px 14px 10px 34px; border-radius: 16px; background: var(--mm-soft); overflow-wrap: anywhere; position: relative; }
.mm-desc::before { content: "“"; position: absolute; left: 10px; top: 2px; font-size: 34px; font-weight: 800; line-height: 1; color: var(--pink-edge, #D98CA2); }

/* ---- going strip (social wave): I'm going, the count, invite ---- */
.mm-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.mm-go[hidden] { display: none; }
.mm-going { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 2px solid var(--mm-stk); background: var(--accent, #8CBF7A); color: var(--accent-ink, #1F2E1B); font: inherit; font-size: 14.5px; font-weight: 800; line-height: 1.2; cursor: pointer; box-shadow: 0 2.5px 0 var(--mm-stk); transition: transform .12s ease, box-shadow .12s ease; }
.mm-going:hover { background: var(--deep, #3E6B33); color: var(--canvas, #FBF6EA); }
.mm-going:active { transform: translateY(2px); box-shadow: 0 0 0 var(--mm-stk); }
.mm-going[aria-pressed="true"] { background: var(--mm-t1); color: var(--ink, #3B2E27); }
.mm-going[aria-pressed="true"]:hover { background: var(--mm-t1e); }
.mm-going .mm-i { width: 18px; height: 18px; }
.mm-gcount { font-size: 14px; font-weight: 800; color: var(--deep, #3E6B33); }
.mm-gcount:empty { display: none; }
.mm-invite { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--mm-soft); color: var(--deep, #3E6B33) !important; font-size: 13.5px; font-weight: 800; text-decoration: none; }
.mm-invite:hover { background: var(--foam, #E6F2DC); }
.mm-invite .mm-i { width: 16px; height: 16px; }
.mm-go.mm-busy .mm-going { opacity: .6; pointer-events: none; }

/* ---- drink chips: stickers ---- */
.mm-chips { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.mm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 13px 3px 3px; border-radius: 999px; border: 2px solid var(--mm-stk); background: var(--mm-t0); color: #3B2E27; font-size: 14.5px; font-weight: 800; box-shadow: 0 2.5px 0 var(--mm-stk); transform: rotate(-1.2deg); }
.mm-chip:nth-child(even) { transform: rotate(1.2deg); }
.mm-chip.mm-t1 { background: #FDE4EB; } .mm-chip.mm-t2 { background: #FDE9D7; } .mm-chip.mm-t0 { background: #E6F2DC; }
.mm-chip-art, .mm-chip .mm-cup { width: 34px; height: 34px; border-radius: 50%; background: var(--mm-cream); object-fit: cover; object-position: 50% 30%; flex: none; border: 1.5px solid rgba(75, 52, 38, .25); }
.mm-chip .mm-cup { padding: 2px; }

/* ---- facts ---- */
.mm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.mm-fact { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; row-gap: 2px; align-items: center; padding: 9px 12px 10px; border-radius: 16px; background: var(--canvas, #FBF6EA); border: 2px solid var(--line, #DCE7D0); min-width: 0; }
.mm-fact .mm-i { color: var(--deep, #3E6B33); width: 17px; height: 17px; }
.mm-fact dd { grid-column: 1 / -1; }
.mm-fact dt { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #6B5A4F); }
.mm-fact dd { font-size: 15px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }

/* ---- place and actions ---- */
.mm-place { gap: 12px; }
.mm-pwrap { display: flex; gap: 10px; align-items: flex-start; }
.mm-pwrap > .mm-i { color: var(--focus, #D9667F); width: 24px; height: 24px; margin-top: 1px; }
.mm-pname { font-size: 16.5px; font-weight: 800; line-height: 1.3; }
.mm-paddr { font-size: 14.5px; color: var(--muted, #6B5A4F); line-height: 1.35; }
.mm-card .mm-approx, .mm-approx { margin-top: 6px !important; font-size: 13.5px; line-height: 1.4; padding: 6px 10px; border-radius: 12px; border: 2px dashed var(--mm-t1e); background: var(--mm-t1); }
.mm-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 6px; }
.mm-act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 2px; border-radius: 16px; text-decoration: none; font-size: 12.5px; font-weight: 800; color: var(--ink, #3B2E27) !important; transition: transform .12s ease; }
.mm-act .mm-i { box-sizing: content-box; width: 22px; height: 22px; padding: 11px; border-radius: 50%; background: var(--foam, #E6F2DC); border: 2px solid var(--edge, #6E9A5E); color: var(--deep, #3E6B33); }
.mm-act-go .mm-i { background: var(--accent, #8CBF7A); color: var(--accent-ink, #1F2E1B); border-color: var(--deep, #3E6B33); }
.mm-act:hover .mm-i { background: var(--accent, #8CBF7A); }
.mm-act:active { transform: scale(.94); }

/* ---- source posts ---- */
.mm-plist { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-post { display: inline-flex; align-items: center; gap: 7px; padding: 4px 13px 4px 4px; border-radius: 14px; border: 2px solid var(--line, #DCE7D0); background: var(--canvas, #FBF6EA); text-decoration: none; font-size: 14px; font-weight: 800; color: var(--ink, #3B2E27) !important; }
.mm-pthumb { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: none; }
.mm-pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-picon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--panel, #FFFDF7); }
.mm-pthumb + .mm-picon { width: 22px; height: 22px; background: none; }
.mm-post-ig .mm-picon { color: #C44D86; } .mm-post-tt .mm-picon { color: var(--ink, #3B2E27); } .mm-post-eb .mm-picon { color: #D1622F; } .mm-post-link .mm-picon { color: var(--deep, #3E6B33); }
:root[data-theme="dark"] .mm-post-ig .mm-picon { color: #F1A7C8; } :root[data-theme="dark"] .mm-post-eb .mm-picon { color: #F3A27A; }

/* ---- brand story ---- */
.mm-story { padding: 14px; border-radius: 20px; background: var(--mm-t0); }
.mm-bio { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.mm-smeta { font-size: 14px; font-weight: 700; color: var(--muted, #6B5A4F); }
.mm-slinks { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-slinks a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; background: var(--panel, #FFFDF7); font-size: 13.5px; font-weight: 800; text-decoration: none; }
.mm-slinks .mm-i { width: 17px; height: 17px; }

/* ---- also nearby + report ---- */
.mm-nlist { display: flex; flex-direction: column; gap: 6px; }
.mm-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.mm-report { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted, #6B5A4F) !important; text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.mm-report:hover { background: var(--mm-soft); text-decoration: underline; }
.mm-morecity { font-weight: 600; }
.mm-bname-link { color: inherit; text-decoration: none; display: inline-block; max-width: 100%; vertical-align: top; } /* inline-block: an inline link's font box ran 2 to 3 px past the heading's line box on long names (the card gate caught it) */
.mm-bname-link:hover { text-decoration: underline; }
.mm-report .mm-i { width: 16px; height: 16px; }

/* ---- list row ---- */
.mm-row { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; overflow: hidden; text-align: left; font: inherit; color: var(--ink, #3B2E27); background: var(--panel, #FFFDF7); border: 2px solid var(--line, #DCE7D0); border-radius: 20px; padding: 9px 12px 9px 9px; cursor: pointer; text-decoration: none; transition: transform .12s ease, border-color .15s ease; }
.mm-row:hover { border-color: var(--accent, #8CBF7A); }
.mm-row:active { transform: scale(.98); }
.mm-th { position: relative; flex: none; width: 68px; height: 68px; border-radius: 16px; overflow: hidden; background: var(--mm-t0); }
.mm-th > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-th-art { object-position: 66% 60%; transform: scale(1.5); transform-origin: 66% 60%; }
.mm-th-cup { position: absolute; inset: 0; display: grid; place-items: center; }
.mm-th-cup.mm-t1 { background: var(--mm-t1); } .mm-th-cup.mm-t2 { background: var(--mm-t2); }
.mm-th-cup img, .mm-th-cup svg { width: 86%; height: 86%; object-fit: contain; }
.mm-rt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mm-rv { font-size: 13.5px; font-weight: 800; color: var(--deep, #3E6B33); }
.mm-row.mm-v-now .mm-rv { color: var(--focus, #D9667F); }
.mm-row.mm-v-past .mm-rv { color: var(--muted, #6B5A4F); }
.mm-rn { display: flex; align-items: center; gap: 6px; font-size: 16.5px; font-weight: 800; line-height: 1.25; min-width: 0; }
.mm-rn { overflow: hidden; white-space: nowrap; }
.mm-rname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mm-rn > .mm-dot, .mm-rn > .mm-kind { flex: none; }
.mm-rp { font-size: 13.5px; color: var(--muted, #6B5A4F); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mm-rgo { font-size: 12.5px; font-weight: 800; color: var(--deep, #3E6B33); white-space: nowrap; }
.mm-rm { display: flex; gap: 4px; margin-top: 3px; overflow: hidden; }
.mm-rm span { flex: none; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--foam, #E6F2DC); color: var(--deep, #3E6B33); }
.mm-rd { flex: none; align-self: flex-start; font-size: 13px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--canvas, #FBF6EA); border: 2px solid var(--line, #DCE7D0); }
.mm-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; }
.mm-dot.mm-conf-confirmed { background: var(--accent, #8CBF7A); }
.mm-dot.mm-conf-unsure { background: transparent; border: 2px dashed var(--mm-t1e); }
.mm-dot.mm-conf-likely { background: var(--mm-t2e); }
/* series rows (the list with no date filter): a small "series" word in the day line; the rule line may wrap, so "until" is never cut */
.mm-rser { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.45; background: var(--foam, #E6F2DC); color: var(--deep, #3E6B33); border: 1px solid var(--line, #DCE7D0); vertical-align: 1px; white-space: nowrap; }
.mm-series .mm-rp { white-space: normal; overflow-wrap: anywhere; }
.mm-row .mm-kind { font-size: 11px; }
.mm-mini { padding: 6px 10px 6px 6px; border-radius: 16px; background: var(--canvas, #FBF6EA); }
.mm-mini .mm-th { width: 48px; height: 48px; border-radius: 12px; }
.mm-mini .mm-rn { font-size: 15px; }

/* ---- brand card ---- */
.mm-bhero { height: 112px; border-radius: 22px; display: grid; place-items: center; background-image: var(--pat, none); }
.mm-bhero.mm-t0 { background-color: var(--mm-t0); } .mm-bhero.mm-t1 { background-color: var(--mm-t1); } .mm-bhero.mm-t2 { background-color: var(--mm-t2); }
.mm-avatar-xl { width: 92px; height: 92px; border-width: 3px; box-shadow: 0 4px 0 var(--mm-stk); background: var(--mm-cream); }
.mm-avatar-xl .mm-initial { font-size: 40px; }
.mm-brandrow-c { justify-content: center; text-align: center; }
.mm-brandrow-c .mm-bmeta { justify-content: center; }
.mm-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mm-stats > span { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--canvas, #FBF6EA); border: 2px solid var(--line, #DCE7D0); }
.mm-stats .mm-i { width: 17px; height: 17px; color: var(--focus, #D9667F); }
.mm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mm-grid a { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--mm-t0); }
.mm-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-stats > .mm-webpill { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; font-size: 14px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--canvas, #FBF6EA); border: 2px solid var(--line, #DCE7D0); text-decoration: none; overflow-wrap: anywhere; }
.mm-stats > .mm-webpill .mm-i { color: var(--deep, #3E6B33); }
.mm-brand .mm-bio1 { text-align: center; font-size: 15px; line-height: 1.45; color: var(--ink, #3B2E27); }
.mm-rposts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mm-rposts > li { min-width: 0; }
.mm-rpost { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-decoration: none; }
.mm-rpic { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--mm-t0); }
.mm-rpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-rsnip { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.35; overflow: hidden; overflow-wrap: anywhere; color: var(--ink, #3B2E27); }
.mm-rdate { font-size: 12.5px; font-weight: 800; color: var(--muted, #6B5A4F); }
.mm-nodates { text-align: center; font-size: 13px; color: var(--muted, #6B5A4F); }
/* the brand list row: the picture in a round frame, the initial when there is none */
.mm-th-b { background: transparent; border-radius: 50%; width: 56px; height: 56px; }
.mm-avatar-row { width: 56px; height: 56px; border-width: 2px; }
.mm-avatar-row .mm-initial { font-size: 22px; }

/* ---- dark: stickers keep their cream faces ---- */
:root[data-theme="dark"] .mm-chip { --mm-cs: #86B077; border-color: var(--mm-cs); box-shadow: 0 2px 0 var(--mm-cs); }
:root[data-theme="dark"] .mm-chip.mm-t1 { --mm-cs: #D79BAE; } :root[data-theme="dark"] .mm-chip.mm-t2 { --mm-cs: #D4A07A; }
:root[data-theme="dark"] .mm-chip.mm-t0 { background: #DCEBC9; } :root[data-theme="dark"] .mm-chip.mm-t1 { background: #F6CFDA; } :root[data-theme="dark"] .mm-chip.mm-t2 { background: #F4D6BC; }
:root[data-theme="dark"] .mm-hero-photo { border-color: #2B3D2F; }


/* ---- page view: two columns on wide screens ---- */
@media (min-width: 900px) {
  .mm-card.mm-page { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "media top" "media main" "more main"; grid-template-rows: auto auto 1fr; column-gap: 28px; row-gap: 16px; padding: 24px; }
  .mm-page > .mm-top { grid-area: top; }
  .mm-page > .mm-media { grid-area: media; }
  .mm-page > .mm-main { grid-area: main; }
  .mm-page > .mm-more { grid-area: more; }
  .mm-page .mm-verdict { font-size: 28px; }
  .mm-page .mm-hero-photo { aspect-ratio: 1 / 1; }
}
@media (max-width: 360px) {
  .mm-card, .mm-brand { padding: 12px; }
  .mm-verdict { font-size: 21px; }
  .mm-acts { grid-template-columns: repeat(4, 1fr); }
}
.mm-top, .mm-media, .mm-nlist > li, .mm-sec { min-width: 0; }

/* ---- static pop-up pages (/e/<id>/) ---- */
.pg-main.pg-card { max-width: 1100px; }
.pg-card > .mm-card { margin: 4px auto 0; border: 2px solid var(--line, #DCE7D0); box-shadow: var(--shadow, 0 8px 24px rgba(75,52,38,.10)); }
.pg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px !important; }

/* Featured pill (site/featured.js): one quiet word next to a name; paid and free look the same. */
.mm-feat { display: inline-block; flex: none; font-size: 11.5px; font-weight: 800; line-height: 1.4; padding: 1px 8px; margin-left: 6px; border-radius: 999px; background: var(--foam, #E6F2DC); color: var(--deep, #3E6B33); border: 1.5px solid var(--line, #DCE7D0); vertical-align: middle; white-space: nowrap; }
.mm-rn > .mm-feat { margin-left: 0; }

/* ---- the sheet (.mm-sheet, mock A) and the desktop pop-up (.mm-compact, mock C) ----
   Facts first: the day pill and time, the name, When and Where boxes, the quote, the menu in one sideways row, then the
   buttons. Sizes are in rem on the shell's scale (13 / 15 / 17 / 21), so a visitor's larger default font grows the card.
   The button row is a container: with room, every button has its icon and label; narrower, Calendar and Share drop their
   icons; narrower still (a 320 px phone at a 20 px font), they keep only the icon and the label stays for screen readers. */
.mm-sheet, .mm-compact { --mm-r: 14px; --mm-lift: 0 1px 2px rgba(75, 52, 38, .06), 0 4px 14px rgba(75, 52, 38, .06); padding: 0; gap: .875rem; background: none; border-radius: 0; max-width: none; }
:root[data-theme="dark"] .mm-sheet, :root[data-theme="dark"] .mm-compact { --mm-lift: 0 1px 2px rgba(0, 0, 0, .3); }
.mm-sheet { max-width: 40rem; margin: 0 auto; }
.mm-sheet .mm-top, .mm-compact .mm-top { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.mm-dayline { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; padding-right: 2.5rem; min-height: 1.75rem; }
.mm-daypill { display: inline-flex; align-items: center; padding: .1875rem .75rem; border-radius: 999px; background: var(--pink, #F6B7C7); color: #3B2228; font-size: .8125rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.mm-v-now .mm-daypill { background: var(--focus, #D9667F); color: #FFFDF7; }
.mm-v-past .mm-daypill, .mm-v-cancelled .mm-daypill { background: var(--mm-soft); color: var(--muted, #6B5A4F); }
.mm-serpill { display: inline-flex; align-items: center; padding: .0625rem .625rem; border-radius: 999px; border: 1.5px solid var(--line, #DCE7D0); color: var(--deep, #3E6B33); font-size: .75rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.mm-daytime { font-size: .9375rem; font-weight: 700; color: var(--ink, #3B2E27); line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
.mm-sheet .mm-bname, .mm-compact .mm-bname { font-size: 1.3125rem; line-height: 1.2; color: var(--deep, #3E6B33); overflow-wrap: anywhere; }
.mm-sheet .mm-bname .mm-feat, .mm-compact .mm-bname .mm-feat { position: relative; top: -.125rem; font-size: .6875rem; }
.mm-sheet .mm-bmeta, .mm-compact .mm-bmeta { font-size: .8125rem; gap: .25rem .5rem; line-height: 1.35; }
.mm-sheet .mm-bmeta .mm-kind, .mm-compact .mm-bmeta .mm-kind { font-size: .75rem; padding: 0 .5rem; line-height: 1.5; }
.mm-sheet .mm-conf, .mm-compact .mm-conf { font-size: .6875rem; padding: .0625rem .5rem; border-width: 1.5px; line-height: 1.4; }

/* When and Where, side by side */
.mm-boxes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; margin: 0; }
.mm-box { display: flex; flex-direction: column; gap: .125rem; min-width: 0; padding: .625rem .75rem .6875rem; border-radius: var(--mm-r); background: var(--canvas, #FBF6EA); border: 1.5px solid var(--line, #DCE7D0); box-shadow: var(--mm-lift); }
.mm-box dt { font-size: .6875rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted, #6B5A4F); line-height: 1.3; }
.mm-box dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mm-box-main { font-size: 1.0625rem; font-weight: 800; line-height: 1.25; color: var(--ink, #3B2E27); }
.mm-box-where .mm-box-main { display: flex; align-items: flex-start; gap: .25rem; }
.mm-box-where .mm-box-main .mm-i { width: 1rem; height: 1rem; margin-top: .1875rem; color: var(--focus, #D9667F); }
.mm-box-where .mm-box-main span { min-width: 0; }
.mm-box-sub { font-size: .8125rem; font-weight: 600; line-height: 1.35; color: var(--muted, #6B5A4F); }
.mm-box .mm-note { margin-top: .125rem; font-size: .75rem; font-weight: 600; line-height: 1.35; color: var(--muted, #6B5A4F); font-style: italic; }

/* the quote */
.mm-q { display: flex; flex-direction: column; align-items: flex-start; gap: .125rem; position: relative; padding: .5625rem .875rem .625rem 2rem; border-radius: var(--mm-r); background: var(--mm-soft); min-width: 0; }
.mm-q::before { content: "“"; position: absolute; left: .625rem; top: .25rem; font-size: 1.875rem; font-weight: 800; line-height: 1; color: var(--pink-edge, #D98CA2); }
.mm-q-text { font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: 100%; }
.mm-compact .mm-q-text { -webkit-line-clamp: 1; line-clamp: 1; font-size: .875rem; }
.mm-q-more { align-self: flex-end; font-size: .8125rem; font-weight: 800; line-height: 1.3; color: var(--deep, #3E6B33); }

/* the menu: one row that scrolls sideways, fading at the right edge */
.mm-sheet .mm-menu, .mm-compact .mm-menu { gap: .375rem; }
.mm-sheet .mm-menu .mm-h { font-size: .75rem; }
.mm-compact .mm-menu .mm-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mm-sheet .mm-chips, .mm-compact .mm-chips { flex-wrap: nowrap; gap: .375rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 1px 1.75rem 4px 0; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent); }
.mm-sheet .mm-chips::-webkit-scrollbar, .mm-compact .mm-chips::-webkit-scrollbar { display: none; }
.mm-sheet .mm-chip, .mm-compact .mm-chip, .mm-sheet .mm-chip:nth-child(even), .mm-compact .mm-chip:nth-child(even) { flex: none; transform: none; white-space: nowrap; gap: .375rem; padding: .1875rem .75rem .1875rem .1875rem; font-size: .875rem; line-height: 1.3; border-width: 1.5px; box-shadow: 0 2px 0 var(--mm-stk); }
.mm-sheet .mm-chip-art, .mm-sheet .mm-chip .mm-cup, .mm-compact .mm-chip-art, .mm-compact .mm-chip .mm-cup { width: 1.5rem; height: 1.5rem; }

/* the photo strip */
.mm-strip, .mm-strip.mm-hero-photo { aspect-ratio: 21 / 8; border-radius: var(--mm-r); border: 0; box-shadow: var(--mm-lift); }
.mm-strip .mm-hero-img { object-fit: cover; }
.mm-strip .mm-hero-art { object-position: 50% 40%; }
.mm-strip .mm-hero-collage { flex-direction: row; }
.mm-strip .mm-cupbox { width: 3.75rem; height: 4.5rem; }
.mm-strip .mm-credit { font-size: .6875rem; }

/* the rest of the sheet, as before but on the same scale */
.mm-sheet .mm-more { gap: .875rem; }
.mm-sheet .mm-h { font-size: .75rem; }
.mm-sheet .mm-post { font-size: .875rem; }
.mm-sheet .mm-bio { font-size: .9375rem; }
.mm-sheet .mm-smeta, .mm-sheet .mm-slinks a, .mm-sheet .mm-report { font-size: .8125rem; }
.mm-sheet .mm-mini .mm-rn { font-size: .9375rem; }
.mm-sheet .mm-mini .mm-rv, .mm-sheet .mm-mini .mm-rp { font-size: .8125rem; }
.mm-sheet .mm-mini .mm-rn, .mm-sheet .mm-mini .mm-rp { white-space: normal; overflow-wrap: anywhere; }
.mm-sheet .mm-mini .mm-rname { text-overflow: clip; overflow: visible; }
.mm-sheet .mm-mini .mm-rn { flex-wrap: wrap; overflow: visible; }

/* the dock: the going strip and the buttons, pinned to the bottom of the sheet; --sy (motion.js) is how far the sheet sits
   below its full height, so at the half-open snap the dock rides the bottom of the screen, not the hidden bottom of the sheet */
.mm-dock { display: flex; flex-direction: column; gap: .5rem; min-width: 0; container: mm-dock / inline-size; }
.mm-sheet .mm-dock { position: sticky; bottom: var(--sy, 0px); z-index: 3; margin-top: -.25rem; padding: .625rem 0 calc(.75rem + env(safe-area-inset-bottom)); background: var(--panel, #FFFDF7); }
.mm-sheet .mm-dock::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 1.25rem; pointer-events: none; background: linear-gradient(to bottom, color-mix(in srgb, var(--panel, #FFFDF7) 0%, transparent), var(--panel, #FFFDF7)); }
.mm-compact .mm-dock { border-top: 1.5px solid var(--line, #DCE7D0); }
.mm-sheet .mm-go, .mm-compact .mm-go { flex-wrap: nowrap; gap: .5rem; min-width: 0; container: mm-go / inline-size; }
.mm-dock .mm-go[hidden] { display: none; }
.mm-sheet .mm-going, .mm-compact .mm-going { flex: none; font-size: .875rem; padding: .375rem .875rem .375rem .625rem; border-width: 1.5px; box-shadow: 0 2px 0 var(--mm-stk); white-space: nowrap; }
.mm-sheet .mm-going .mm-i, .mm-compact .mm-going .mm-i { width: 1.125rem; height: 1.125rem; }
.mm-sheet .mm-gcount, .mm-compact .mm-gcount { flex: 1 1 auto; min-width: 0; font-size: .8125rem; line-height: 1.25; overflow-wrap: anywhere; }
.mm-sheet .mm-invite, .mm-compact .mm-invite { flex: none; position: relative; font-size: .8125rem; padding: .375rem .75rem; white-space: nowrap; }
.mm-sheet .mm-invite .mm-i, .mm-compact .mm-invite .mm-i { width: 1rem; height: 1rem; }
.mm-dock .mm-acts { display: flex; gap: .5rem; position: static; padding: 0; margin: 0; background: none; }
.mm-dock .mm-act, .mm-compact .mm-dock .mm-act { position: relative; flex: 1 1 auto; flex-direction: row; justify-content: center; align-items: center; gap: .375rem; min-width: 0; min-height: 2.75rem; padding: .5rem .75rem;
  border-radius: 999px; border: 1.5px solid var(--edge, #6E9A5E); background: var(--panel, #FFFDF7); color: var(--deep, #3E6B33) !important; font-size: .9375rem; font-weight: 800; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.mm-dock .mm-act .mm-i, .mm-compact .mm-dock .mm-act .mm-i { box-sizing: border-box; width: 1.125rem; height: 1.125rem; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; }
.mm-dock .mm-act-go, .mm-compact .mm-dock .mm-act-go { flex: 1.6 1 auto; background: var(--accent, #8CBF7A); border-color: var(--deep, #3E6B33); color: var(--accent-ink, #1F2E1B) !important; box-shadow: 0 2px 0 var(--deep, #3E6B33); }
.mm-dock .mm-act:hover { background: var(--foam, #E6F2DC); }
.mm-dock .mm-act-go:hover { background: var(--deep, #3E6B33); color: var(--canvas, #FBF6EA) !important; }
@container mm-go (max-width: 24rem) {
  .mm-invite span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mm-sheet .mm-invite, .mm-compact .mm-invite { padding: .5rem; }
}
@container mm-dock (max-width: 21rem) {
  .mm-dock .mm-act:not(.mm-act-go) .mm-i { display: none; }
  .mm-dock .mm-act { padding: .5rem .625rem; font-size: .875rem; }
}
@container mm-dock (max-width: 17.5rem) {
  .mm-dock .mm-act:not(.mm-act-go) { flex: none; width: 2.75rem; padding: 0; }
  .mm-dock .mm-act:not(.mm-act-go) .mm-i { display: block; }
  .mm-dock .mm-act:not(.mm-act-go) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
#sheet-body:has(> .mm-sheet) { padding-bottom: 0; }

/* the pop-up: its width is 340 px at the usual font size (motion.css) and grows with a larger one (app.js lets it, maxWidth 26rem);
   below the buttons, the way to the full page, then the foot */
.mm-pop .maplibregl-popup-content { width: 21.25rem; }
.mm-compact { gap: .5rem; }
.mm-compact .mm-top { gap: .125rem; }
.mm-compact .mm-bname { font-size: 1.1875rem; }
.mm-compact .mm-dayline { padding-right: 2.25rem; }
.mm-compact .mm-boxes { align-items: start; }
.mm-compact .mm-box { padding: .5rem .625rem .5625rem; }
.mm-compact .mm-box-main { font-size: .9375rem; }
.mm-compact .mm-box-sub { font-size: .75rem; }
.mm-compact .mm-q { padding: .375rem .75rem .375rem 1.75rem; }
.mm-compact .mm-q::before { left: .5rem; top: .1875rem; font-size: 1.5rem; }
.mm-compact .mm-dock { padding-top: .625rem; margin-top: .125rem; }
.mm-compact .mm-foot { justify-content: flex-start; align-items: baseline; gap: .125rem .75rem; margin-top: -.125rem; }
.mm-compact .mm-foot .mm-report { padding: 0; font-size: .75rem; line-height: 1.4; }
.mm-compact .mm-foot .mm-report .mm-i { display: none; }
.mm-full { font-size: .8125rem; font-weight: 700; line-height: 1.4; color: var(--deep, #3E6B33); text-underline-offset: 2px; }
/* a short window with a large font: the quote steps out of the pop-up first (it is on the full page) so the buttons
   never scroll; 44.9rem is just under 720 px at the usual 16 px and just under 900 px at 20 px */
@media (max-height: 44.9rem) { .mm-compact .mm-q { display: none; } }

/* the grip, visible on cream */
.sheet-grip::before { background: color-mix(in srgb, var(--muted, #6B5A4F) 45%, var(--panel, #FFFDF7)); }
