/* MacroMeet design system: shared by every page. Black, white, stone and
   marble, with amber/gold accents and a little deep green. Event design pages
   (/e/<path>/) add their own stylesheet on top and may restyle anything
   inside <main>; the header reads --mm-header-* variables they can set. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2?v=c940764593d0") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2?v=60c06664b5a9") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2?v=6ee678c33f38") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-500.woff2?v=615a7673d37b") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --mm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mm-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mm-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --mm-black: #0f0e0c;
  --mm-white: #ffffff;
  --mm-bg: #f4f1eb;
  --mm-surface: #fbfaf7;
  --mm-surface-2: #eeeae2;
  --mm-ink: #171512;
  --mm-ink-2: #3a362f;
  --mm-muted: #6e685e;
  --mm-line: #dcd5c9;
  --mm-line-2: #cbc3b5;
  --mm-gold: #b08a35;
  --mm-gold-2: #d6b25e;
  --mm-gold-ink: #7b5e1d;
  --mm-gold-wash: #f4ead2;
  --mm-green: #2c5b4e;
  --mm-green-2: #3d7a68;
  --mm-green-wash: #e2ede8;
  --mm-danger: #a3341f;
  --mm-focus: #d6b25e;
  --mm-marble: url("/assets/img/marble.svg?v=bb883e78ce89");
  --mm-marble-dark: url("/assets/img/marble-dark.svg?v=7bfd07465578"); /* light veins, for dark backgrounds */
  --mm-radius: 16px;
  --mm-radius-sm: 10px;
  --mm-shadow-sm: 0 1px 2px rgb(23 21 18 / .06), 0 2px 6px rgb(23 21 18 / .04);
  --mm-shadow: 0 1px 2px rgb(23 21 18 / .06), 0 12px 32px -12px rgb(23 21 18 / .22);
  --mm-shadow-lg: 0 2px 6px rgb(23 21 18 / .08), 0 30px 70px -20px rgb(23 21 18 / .45);
  --mm-ease: cubic-bezier(.2, .8, .2, 1);
  --mm-header-h: 64px;
  --mm-header-bg: rgb(15 14 12 / .93);
  --mm-header-fg: #f4efe6;
  --mm-header-muted: #a9a297;
  --mm-header-line: rgb(214 178 94 / .22);
  --mm-max: 72rem;
  --mm-prose: 44rem;

  /* Older page styles (sign-up form, pay page) use these names. */
  --bg: var(--mm-surface); --surface: var(--mm-surface-2); --text: var(--mm-ink);
  --muted: var(--mm-muted); --border: var(--mm-line); --accent: var(--mm-green);
  --accent-hover: var(--mm-green-2); --accent-text: #fff; --focus-ring: var(--mm-focus);
  --error: var(--mm-danger); --success: var(--mm-green); --button-shadow: rgb(44 91 78 / .35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mm-bg: #0f0e0c;
    --mm-surface: #171613;
    --mm-surface-2: #1f1d19;
    --mm-ink: #f1ece2;
    --mm-ink-2: #d5cfc3;
    --mm-muted: #a39c90;
    --mm-line: #2e2b26;
    --mm-line-2: #3d3a33;
    --mm-gold: #d6b25e;
    --mm-gold-2: #e8c97c;
    --mm-gold-ink: #e8c97c;
    --mm-gold-wash: #2a2416;
    --mm-green: #5f9c88;
    --mm-green-2: #78b39f;
    --mm-green-wash: #172520;
    --mm-danger: #f0846f;
    --mm-shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --mm-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -12px rgb(0 0 0 / .7);
    --mm-shadow-lg: 0 2px 6px rgb(0 0 0 / .5), 0 30px 70px -20px rgb(0 0 0 / .85);
    --accent-text: #0b1512;
    --button-shadow: rgb(0 0 0 / .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mm-bg: #0f0e0c;
  --mm-surface: #171613;
  --mm-surface-2: #1f1d19;
  --mm-ink: #f1ece2;
  --mm-ink-2: #d5cfc3;
  --mm-muted: #a39c90;
  --mm-line: #2e2b26;
  --mm-line-2: #3d3a33;
  --mm-gold: #d6b25e;
  --mm-gold-2: #e8c97c;
  --mm-gold-ink: #e8c97c;
  --mm-gold-wash: #2a2416;
  --mm-green: #5f9c88;
  --mm-green-2: #78b39f;
  --mm-green-wash: #172520;
  --mm-danger: #f0846f;
  --mm-shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --mm-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -12px rgb(0 0 0 / .7);
  --mm-shadow-lg: 0 2px 6px rgb(0 0 0 / .5), 0 30px 70px -20px rgb(0 0 0 / .85);
  --accent-text: #0b1512;
  --button-shadow: rgb(0 0 0 / .45);
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mm-header-h) + 1rem); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font: 400 16.5px/1.6 var(--mm-font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main.mm-main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--mm-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mm-gold-ink); }
:focus-visible { outline: 2px solid var(--mm-focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mm-gold-2); color: var(--mm-black); }
[hidden] { display: none !important; }

h1, h2, h3 { color: var(--mm-ink); text-wrap: balance; }
h1 { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--mm-serif); letter-spacing: -0.01em; margin: 0 0 1rem; }
h2 { font: 400 1.75rem/1.2 var(--mm-serif); margin: 2.4rem 0 .6rem; }
h3 { font: 600 1.05rem/1.35 var(--mm-font); margin: 1.6rem 0 .4rem; }
p { margin: 0 0 1rem; }
.mm-ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mm-ico-sm { width: 1em; height: 1em; }
.mm-eyebrow { font: 600 .74rem/1.2 var(--mm-font); letter-spacing: .16em; text-transform: uppercase; color: var(--mm-gold-ink); margin: 0 0 .7rem; }
.mm-serif { font-family: var(--mm-serif); font-weight: 400; }
.mm-muted { color: var(--mm-muted); }

/* Layout helpers. .wrap is the narrow text column older pages use. */
.wrap, .mm-prose { max-width: var(--mm-prose); margin: 0 auto; padding: 0 1rem; }
.mm-container { max-width: var(--mm-max); margin: 0 auto; padding: 0 1.25rem; }
main.mm-main > .wrap { padding-top: 3rem; padding-bottom: 4rem; }
.lead { font-size: 1.15rem; color: var(--mm-muted); }
.updated { color: var(--mm-muted); font-size: .92rem; }
.callout {
  position: relative;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--mm-shadow-sm);
}
.callout h2 { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.mm-skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--mm-gold-2); color: var(--mm-black); padding: .5rem .9rem; border-radius: 8px; }
.mm-skip:focus { left: .5rem; }

/* ---------- Header ---------- */
.mm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--mm-header-fg);
  background: var(--mm-header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--mm-header-line);
}
.mm-header-inner {
  max-width: var(--mm-max);
  height: var(--mm-header-h);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.mm-brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.mm-brand:hover { color: inherit; }
.mm-brand-mark { display: inline-flex; width: 32px; height: 32px; transition: transform .5s var(--mm-ease); }
.mm-brand-mark svg { width: 100%; height: 100%; }
.mm-brand:hover .mm-brand-mark { transform: rotate(-8deg) scale(1.05); }
.mm-brand-word { font: 400 1.55rem/1 var(--mm-serif); letter-spacing: .005em; }
.mm-nav { display: flex; gap: .25rem; margin-right: auto; }
.mm-nav a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border-radius: 999px;
  color: var(--mm-header-muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.mm-nav a:hover { color: var(--mm-header-fg); background: rgb(255 255 255 / .06); }
.mm-nav a[aria-current="page"] { color: var(--mm-header-fg); background: rgb(214 178 94 / .14); box-shadow: inset 0 0 0 1px rgb(214 178 94 / .3); }
.mm-header-actions { display: flex; align-items: center; gap: .75rem; }
/* Shown once logged in, left of the account menu. */
.mm-create-button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid rgb(214 178 94 / .45);
  background: rgb(214 178 94 / .12);
  color: var(--mm-header-fg); text-decoration: none; font: 600 .9rem var(--mm-font);
  transition: background-color .2s, border-color .2s, color .2s;
}
.mm-create-button:hover { color: #1b1407; background: #d6b25e; border-color: #d6b25e; }
.mm-create-button[aria-current="page"] { background: rgb(214 178 94 / .22); }
@media (max-width: 640px) { .mm-create-button span { display: none; } .mm-create-button { padding: .5rem; } }

/* ---------- Buttons ---------- */
.button {
  --b-bg: linear-gradient(180deg, #357061 0%, #2a5a4d 100%);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px;
  padding: .8rem 1.5rem;
  background: var(--b-bg);
  color: #fff;
  font: 600 1rem/1.2 var(--mm-font);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 1px 2px rgb(23 21 18 / .25), 0 8px 20px -8px rgb(44 91 78 / .6);
  transition: transform .18s var(--mm-ease), box-shadow .18s var(--mm-ease), filter .18s, opacity .2s;
}
.button:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 2px 4px rgb(23 21 18 / .25), 0 14px 28px -10px rgb(44 91 78 / .7); }
.button:active { transform: translateY(0) scale(.98); filter: brightness(.96); }
.button:focus-visible { outline: 2px solid var(--mm-focus); outline-offset: 3px; }
.button:disabled { opacity: .55; cursor: default; transform: none; }
.button--gold { --b-bg: linear-gradient(180deg, #e2c071, #c49a3f); color: #1b1407; box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 1px 2px rgb(23 21 18 / .25), 0 8px 20px -8px rgb(176 138 53 / .7); }
.button--gold:hover { color: #1b1407; }
.button--ghost { --b-bg: transparent; color: var(--mm-ink); box-shadow: inset 0 0 0 1px var(--mm-line-2); }
.button--ghost:hover { color: var(--mm-ink); box-shadow: inset 0 0 0 1px var(--mm-gold); background: var(--mm-gold-wash); }
/* Event designs can recolor the header button with --mm-header-btn-bg / -fg. */
.mm-login-button { padding: .55rem 1.15rem; font-size: .92rem; --b-bg: var(--mm-header-btn-bg, linear-gradient(180deg, #357061 0%, #2a5a4d 100%)); color: var(--mm-header-btn-fg, #fff); }
.mm-login-button:hover { color: var(--mm-header-btn-fg, #fff); }
.mm-textbutton { border: 0; background: none; color: var(--mm-muted); font: 500 .9rem var(--mm-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .25rem; }
.mm-textbutton:hover { color: var(--mm-ink); }

/* The "Go" buttons in the login dialog: black and gold, with a green glint.
   Hover sweeps a sheen across, focus pulses a gold ring, and a click
   presses in and throws a ripple. Pure CSS. */
.mm-go {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: none;
  display: inline-flex; align-items: center; gap: .4rem;
  height: 3.25rem;
  padding: 0 1.2rem 0 1.35rem;
  border: 0;
  border-radius: 14px;
  color: #f3dfa6;
  font: 600 1rem var(--mm-font);
  letter-spacing: .04em;
  cursor: pointer;
  background:
    linear-gradient(#141310, #141310) padding-box,
    linear-gradient(135deg, #e6c878, #8a6a24 40%, #3d7a68 75%, #d6b25e) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 6px 18px -8px rgb(0 0 0 / .7);
  transition: transform .2s var(--mm-ease), box-shadow .25s var(--mm-ease), color .2s;
}
.mm-go::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgb(230 200 120 / .0) 30%, rgb(230 200 120 / .35) 45%, rgb(95 156 136 / .35) 55%, transparent 70%);
  transform: translateX(-120%);
}
.mm-go::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle, rgb(230 200 120 / .55), rgb(95 156 136 / .25) 60%, transparent 70%);
  transform: scale(0);
  opacity: 0;
}
.mm-go .mm-ico { transition: transform .25s var(--mm-ease); }
.mm-go:hover { color: #ffe9b0; transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 10px 26px -10px rgb(214 178 94 / .55), 0 0 0 4px rgb(214 178 94 / .08); }
.mm-go:hover::before { animation: mm-sheen .9s var(--mm-ease) both; }
.mm-go:hover .mm-ico { transform: translateX(3px); }
.mm-go:focus-visible { outline: none; animation: mm-focus-pulse 1.6s ease-in-out infinite; }
.mm-go:active { transform: translateY(1px) scale(.96); transition-duration: .06s; }
.mm-go:active::after { animation: mm-ripple .55s ease-out; }
.mm-go[aria-busy="true"] { pointer-events: none; color: transparent; }
.mm-go[aria-busy="true"] .mm-ico { opacity: 0; }
.mm-go[aria-busy="true"]::after { opacity: 1; transform: none; width: 18px; height: 18px; margin: -9px 0 0 -9px; background: none; border: 2px solid rgb(214 178 94 / .3); border-top-color: #e6c878; animation: mm-spin .7s linear infinite; }
@keyframes mm-sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes mm-ripple { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(16); opacity: 0; } }
@keyframes mm-focus-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgb(214 178 94 / .9), 0 0 0 6px rgb(214 178 94 / .18); }
  50% { box-shadow: 0 0 0 2px rgb(95 156 136 / .9), 0 0 0 9px rgb(95 156 136 / .12); }
}
@keyframes mm-spin { to { transform: rotate(360deg); } }

/* ---------- Account menu ---------- */
.mm-account { position: relative; }
.mm-account-button {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .25rem .6rem .25rem .25rem;
  border: 1px solid rgb(214 178 94 / .35);
  border-radius: 999px;
  background: rgb(255 255 255 / .04);
  color: var(--mm-header-fg);
  font: 500 .92rem var(--mm-font);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.mm-account-button:hover { background: rgb(255 255 255 / .09); border-color: rgb(214 178 94 / .6); }
.mm-account-button img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #2a2723; }
.mm-menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 14rem;
  padding: .4rem;
  border-radius: 14px;
  background: var(--mm-surface);
  color: var(--mm-ink);
  border: 1px solid var(--mm-line);
  box-shadow: var(--mm-shadow-lg);
  animation: mm-pop .18s var(--mm-ease);
  transform-origin: top right;
}
.mm-menu-head { margin: 0; padding: .6rem .75rem .7rem; border-bottom: 1px solid var(--mm-line); display: grid; gap: .1rem; font-weight: 600; }
.mm-menu-head small { color: var(--mm-muted); font-weight: 400; font-size: .8rem; }
.mm-menu button, .mm-menu a {
  display: block; width: 100%; text-align: left;
  padding: .55rem .75rem; margin-top: .2rem;
  border: 0; border-radius: 9px; background: none;
  color: var(--mm-ink); font: 500 .93rem var(--mm-font); text-decoration: none; cursor: pointer;
}
.mm-menu button:hover, .mm-menu a:hover { background: var(--mm-surface-2); color: var(--mm-ink); }
@keyframes mm-pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }

/* ---------- Dialogs ---------- */
.mm-dialog, dialog.sms-dialog {
  width: min(30rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem 1.6rem 1.6rem;
  border: 1px solid var(--mm-line);
  border-radius: 22px;
  background: var(--mm-surface);
  color: var(--mm-ink);
  box-shadow: var(--mm-shadow-lg);
}
dialog.sms-dialog { width: min(40rem, calc(100vw - 1.5rem)); }
.mm-dialog[open], dialog.sms-dialog[open] { animation: mm-dialog-in .32s var(--mm-ease); }
.mm-dialog::backdrop, dialog.sms-dialog::backdrop { background: rgb(12 11 9 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: mm-fade .3s ease; }
@keyframes mm-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes mm-fade { from { opacity: 0; } }
body:has(dialog[open]) { overflow: hidden; }
.mm-dialog-head, .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.mm-dialog-head h2, .dialog-head h2 { margin: 0; font: 400 2rem/1.1 var(--mm-serif); }
.mm-dialog-close, .dialog-close {
  flex: none; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; margin: -.3rem -.5rem 0 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--mm-muted);
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--mm-ease);
}
.mm-dialog-close:hover, .dialog-close:hover { background: var(--mm-surface-2); color: var(--mm-ink); transform: rotate(90deg); }
.mm-dialog-lead { color: var(--mm-muted); margin: .2rem 0 1.4rem; }
.mm-dialog-hint { color: var(--mm-muted); font-size: .9rem; margin: 1rem 0 .6rem; }

/* Login dialog */
.mm-login { width: min(29rem, calc(100vw - 1.5rem)); }
.mm-login::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px;
  background: linear-gradient(90deg, var(--mm-black), var(--mm-gold) 45%, var(--mm-green-2) 80%, var(--mm-black));
}
.mm-login-row { display: flex; gap: .6rem; align-items: stretch; }
.mm-float { position: relative; flex: 1; min-width: 0; }
.mm-float input {
  width: 100%; height: 3.25rem;
  padding: 1.25rem .95rem .35rem;
  border: 1px solid var(--mm-line-2);
  border-radius: 14px;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font: 500 1rem var(--mm-font);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.mm-float input:hover { border-color: var(--mm-muted); }
.mm-float input:focus { outline: none; border-color: var(--mm-gold); box-shadow: 0 0 0 4px rgb(214 178 94 / .18); background: var(--mm-surface); }
.mm-float input[aria-invalid="true"] { border-color: var(--mm-danger); }
.mm-float span {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  color: var(--mm-muted); font-size: 1rem; pointer-events: none;
  transition: top .18s var(--mm-ease), font-size .18s var(--mm-ease), color .18s, transform .18s var(--mm-ease);
}
.mm-float input:focus + span, .mm-float input:not(:placeholder-shown) + span { top: .8rem; transform: none; font-size: .72rem; letter-spacing: .04em; color: var(--mm-gold-ink); }
.mm-or { display: flex; align-items: center; gap: .8rem; margin: .9rem 0; color: var(--mm-muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.mm-or::before, .mm-or::after { content: ""; flex: 1; height: 1px; background: var(--mm-line); }
.mm-login-error { min-height: 1.4rem; margin: .8rem 0 0; color: var(--mm-danger); font-size: .9rem; font-weight: 500; }
.mm-login-step[data-step="code"], .mm-login-step[data-step="done"] { text-align: center; padding-top: .6rem; }
.mm-code { display: flex; justify-content: center; gap: .45rem; margin: .4rem 0 1.2rem; }
.mm-code span {
  display: grid; place-items: center;
  width: 3rem; height: 3.8rem;
  border-radius: 12px;
  background: var(--mm-black);
  color: #f3dfa6;
  font: 500 2rem/1 var(--mm-mono);
  box-shadow: inset 0 0 0 1px rgb(214 178 94 / .35), 0 8px 18px -10px rgb(0 0 0 / .6);
  animation: mm-digit .5s var(--mm-ease) both;
}
.mm-code span:nth-child(4) { margin-left: .7rem; }
.mm-code span:nth-child(2) { animation-delay: .05s; } .mm-code span:nth-child(3) { animation-delay: .1s; }
.mm-code span:nth-child(4) { animation-delay: .15s; } .mm-code span:nth-child(5) { animation-delay: .2s; } .mm-code span:nth-child(6) { animation-delay: .25s; }
@keyframes mm-digit { from { opacity: 0; transform: translateY(10px) rotateX(60deg); } }
.mm-call { display: inline-flex; align-items: center; gap: .7rem; padding: .55rem 1rem .55rem .55rem; border-radius: 999px; background: var(--mm-surface-2); font-weight: 500; }
.mm-call-icon { position: relative; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--mm-green); color: #fff; }
.mm-call-icon .mm-ico { width: 1.05rem; height: 1.05rem; }
.mm-call[data-mm-call-state="calling"] .mm-call-icon, .mm-call[data-mm-call-state="ringing"] .mm-call-icon { animation: mm-ring 1.2s ease-in-out infinite; }
.mm-call[data-mm-call-state="calling"] .mm-call-icon::after, .mm-call[data-mm-call-state="ringing"] .mm-call-icon::after,
.mm-call[data-mm-call-state="in-progress"] .mm-call-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mm-green-2); animation: mm-halo 1.4s ease-out infinite;
}
.mm-call[data-mm-call-state="in-progress"] .mm-call-icon { background: var(--mm-gold); color: var(--mm-black); }
.mm-call[data-mm-call-state="failed"] .mm-call-icon { background: var(--mm-danger); }
@keyframes mm-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: rotate(0); } }
@keyframes mm-halo { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.mm-done-check svg { width: 5rem; height: 5rem; margin: .5rem auto 0; display: block; }
.mm-done-check circle { fill: none; stroke: var(--mm-green); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: mm-draw .6s var(--mm-ease) forwards; }
.mm-done-check path { fill: none; stroke: var(--mm-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: mm-draw .45s .45s var(--mm-ease) forwards; }
@keyframes mm-draw { to { stroke-dashoffset: 0; } }
.mm-done-title { font: 400 2rem/1.2 var(--mm-serif); margin: 1rem 0 0; }

@media (max-width: 420px) {
  .mm-go { padding: 0 1rem; }
  .mm-code span { width: 2.5rem; height: 3.3rem; font-size: 1.7rem; }
  .mm-code span:nth-child(4) { margin-left: .35rem; }
}

/* Profile and guest dialogs (mm-app.js / mm-event.js) */
.mm-frame-dialog { width: min(34rem, calc(100vw - 1.5rem)); padding: 0; overflow: hidden; }
.mm-frame-dialog .mm-dialog-close { position: absolute; top: .8rem; right: .8rem; margin: 0; z-index: 2; background: rgb(15 14 12 / .55); color: #fff; }
.mm-frame-dialog .mm-dialog-close:hover { background: rgb(15 14 12 / .8); color: #fff; }
.mm-frame-dialog iframe { display: block; width: 100%; height: 520px; border: 0; background: var(--mm-surface); transition: height .25s var(--mm-ease); }

/* ---------- Forms (sign-up) ---------- */
form.sms { display: grid; gap: 1rem; }
form.sms .field { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
form.sms input[type="text"], form.sms input[type="email"], form.sms input[type="tel"] {
  font: inherit; font-weight: 400; padding: .7rem .85rem; border: 1px solid var(--mm-line-2); border-radius: 12px; background: var(--mm-bg); color: var(--mm-ink); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
form.sms input:focus { outline: none; border-color: var(--mm-gold); box-shadow: 0 0 0 4px rgb(214 178 94 / .18); }
form.sms:has(:invalid) .button { opacity: .5; box-shadow: none; }
form.sms:has(:invalid) .button:hover { transform: none; filter: none; }
form.sms :invalid { box-shadow: none; }
.phone-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; }
.country-picker { position: relative; display: flex; align-items: center; gap: .45rem; padding: 0 .6rem 0 .75rem; border: 1px solid var(--mm-line-2); border-radius: 12px; background: var(--mm-bg); }
.country-display { white-space: nowrap; font-weight: 400; }
.country-picker::after { content: ""; width: .45rem; height: .45rem; margin-top: -.2rem; border-right: 2px solid var(--mm-muted); border-bottom: 2px solid var(--mm-muted); transform: rotate(45deg); }
.country-picker:hover { border-color: var(--mm-muted); }
.country-picker:has(select:focus-visible) { outline: 2px solid var(--mm-focus); outline-offset: 1px; }
form.sms .country-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 1rem; font-weight: 400; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .85rem; line-height: 1.5; font-weight: 400; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: .1rem; accent-color: var(--mm-green); }
.form-hint { margin: -.4rem 0 0; color: var(--mm-muted); font-size: .85rem; }
.field-error { color: var(--mm-danger); font-size: .9rem; font-weight: 600; }
.field-error:empty { display: none; }
form.sms input[aria-invalid="true"] { border-color: var(--mm-danger); }
.status { min-height: 1.5rem; margin: 0; font-weight: 600; }
.status.error { color: var(--mm-danger); }
.status.success { color: var(--mm-green); }
.form-links { display: flex; flex-wrap: wrap; gap: 0 .5rem; margin: 0; font-size: .85rem; }
.form-links a + a::before { content: "·"; display: inline-block; margin-right: .5rem; color: var(--mm-muted); }
dialog.sms-dialog .lead { font-size: 1rem; margin: .5rem 0 1rem; }
@media (max-width: 480px) { form.sms .button { width: 100%; } }

/* ---------- Footer ---------- */
.mm-footer { margin-top: 4rem; background: var(--mm-black); color: #a9a297; font-size: .9rem; border-top: 1px solid rgb(214 178 94 / .25); }
.mm-footer-inner { max-width: var(--mm-max); margin: 0 auto; padding: 2.5rem 1.25rem 2.75rem; display: grid; gap: 1.25rem; }
.mm-footer-brand { display: flex; align-items: center; gap: .9rem; }
.mm-footer-brand .mm-brand-mark { width: 40px; height: 40px; }
.mm-footer-name { margin: 0; font: 400 1.5rem/1 var(--mm-serif); color: #f4efe6; }
.mm-footer-tag { margin: .2rem 0 0; color: #8e877c; font-style: italic; font-family: var(--mm-serif); font-size: 1.05rem; }
.mm-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.mm-footer a { color: #cfc8bc; text-decoration: none; }
.mm-footer a:hover { color: var(--mm-gold-2); }
.mm-footer-legal { margin: 0; color: #7f786d; font-size: .82rem; }

/* ---------- Home ---------- */
.mm-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--mm-line);
  background: var(--mm-marble) center / 900px repeat, linear-gradient(180deg, #f7f4ee, #ece7de);
}
.mm-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--mm-bg)); z-index: -1; }
.mm-hero-inner { max-width: var(--mm-max); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) 1.25rem clamp(3rem, 7vw, 5.5rem); display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; }
.mm-hero h1 { font-size: clamp(3.2rem, 8vw, 6.2rem); line-height: .95; margin-bottom: 1.2rem; }
.mm-hero h1 em { font-style: italic; color: var(--mm-gold-ink); }
.mm-hero .lead { font-size: 1.2rem; max-width: 34rem; color: var(--mm-ink-2); }
.mm-hero-card { justify-self: end; width: min(100%, 22rem); padding: 1.4rem; border-radius: 22px; background: rgb(15 14 12 / .94); color: #efe9de; box-shadow: var(--mm-shadow-lg); border: 1px solid rgb(214 178 94 / .3); transform: rotate(1.5deg); transition: transform .5s var(--mm-ease); }
.mm-hero-card:hover { transform: rotate(0) translateY(-4px); }
.mm-hero-card .mm-eyebrow { color: var(--mm-gold-2); }
.mm-hero-card h3 { color: #fff; font: 400 1.7rem/1.1 var(--mm-serif); margin: 0 0 .8rem; }
.mm-hero-card dl { margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.mm-hero-card dl div { display: flex; gap: .6rem; align-items: center; color: #cfc8bc; }
.mm-hero-card .mm-ico { color: var(--mm-gold-2); }
.mm-hero-card a.button { margin-top: 1.1rem; width: 100%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mm-hero { background: var(--mm-marble-dark) center / 900px repeat, linear-gradient(180deg, #1b1915, #11100e); }
}
:root[data-theme="dark"] .mm-hero { background: var(--mm-marble-dark) center / 900px repeat, linear-gradient(180deg, #1b1915, #11100e); }

@media (max-width: 820px) {
  .mm-hero-inner { grid-template-columns: 1fr; }
  .mm-hero-card { justify-self: start; transform: none; }
}
.mm-section { max-width: var(--mm-prose); margin: 0 auto; padding: 2.5rem 1.25rem 0; }

/* ---------- Events index ---------- */
.mm-page-head { max-width: var(--mm-max); margin: 0 auto; padding: 3.5rem 1.25rem 1.5rem; }
.mm-page-head h1 { margin-bottom: .6rem; }
.mm-page-head .lead { max-width: 40rem; margin: 0; }
.mm-section-head { max-width: var(--mm-max); margin: 2.5rem auto 1rem; padding: 0 1.25rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mm-section-head h2 { margin: 0; }
.mm-section-head p { margin: 0; color: var(--mm-muted); max-width: 34rem; }
.mm-city-grid { max-width: var(--mm-max); margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
.mm-city-grid--host { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); }
.mm-city {
  --city-ink: #1d1b18; --city-stone: #ddd7cc; --city-stone2: #c4bcae; --city-paper: #f6f3ee; --city-gold: #b08a35; --city-green: #2c5b4e;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--mm-radius);
  border: 1px solid var(--mm-line);
  background: var(--mm-marble) center / 700px, linear-gradient(170deg, #fbfaf7, #efebe3);
  color: var(--mm-ink);
  text-decoration: none;
  box-shadow: var(--mm-shadow-sm);
  transition: transform .35s var(--mm-ease), box-shadow .35s var(--mm-ease), border-color .35s;
}
.mm-city:hover { color: var(--mm-ink); transform: translateY(-4px); box-shadow: var(--mm-shadow); border-color: rgb(176 138 53 / .55); }
.mm-city-art { aspect-ratio: 400 / 240; padding: .6rem .6rem 0; }
.mm-city-art svg { display: block; width: 100%; height: 100%; }
.mm-city-art .draw { stroke-dashoffset: 0; }
.mm-city:hover .mm-city-art .draw { animation: mm-city-draw 1.6s var(--mm-ease); }
@keyframes mm-city-draw { from { stroke-dashoffset: var(--len, 1400); } to { stroke-dashoffset: 0; } }
.mm-city-body { display: flex; align-items: end; justify-content: space-between; gap: .75rem; padding: .7rem 1.1rem 1.05rem; border-top: 1px solid rgb(176 138 53 / .25); background: rgb(251 250 247 / .75); }
.mm-city-name { margin: 0; font: 400 1.65rem/1.05 var(--mm-serif); color: #171512; }
.mm-city-meta { margin: .2rem 0 0; color: #6e685e; font-size: .82rem; letter-spacing: .02em; }
.mm-city-go { flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #0f0e0c; color: #e6c878; transition: transform .35s var(--mm-ease), background-color .3s; }
.mm-city:hover .mm-city-go { transform: translateX(3px); background: var(--mm-green); color: #fff; }
.mm-city-badge { position: absolute; top: .8rem; left: .8rem; padding: .25rem .6rem; border-radius: 999px; font: 600 .68rem/1.2 var(--mm-font); letter-spacing: .12em; text-transform: uppercase; background: #0f0e0c; color: #e6c878; }
.mm-city--host .mm-city-badge { background: var(--mm-green); color: #fff; }
.mm-city--discovery .mm-city-badge { background: rgb(251 250 247 / .9); color: #6e685e; box-shadow: inset 0 0 0 1px #dcd5c9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mm-city {
    --city-ink: #ece6da; --city-stone: #34312c; --city-stone2: #45413a; --city-paper: #1a1916; --city-gold: #d6b25e; --city-green: #5f9c88;
    background: var(--mm-marble-dark) center / 700px, linear-gradient(170deg, #1d1b18, #141310); border-color: #2e2b26;
  }
  :root:not([data-theme="light"]) .mm-city:hover { color: var(--mm-ink); }
  :root:not([data-theme="light"]) .mm-city-body { background: rgb(15 14 12 / .6); }
  :root:not([data-theme="light"]) .mm-city-name { color: #f1ece2; }
  :root:not([data-theme="light"]) .mm-city-meta { color: #a39c90; }
  :root:not([data-theme="light"]) .mm-city--discovery .mm-city-badge { background: rgb(15 14 12 / .8); color: #a39c90; box-shadow: inset 0 0 0 1px #3d3a33; }
}
:root[data-theme="dark"] .mm-city {
  --city-ink: #ece6da; --city-stone: #34312c; --city-stone2: #45413a; --city-paper: #1a1916; --city-gold: #d6b25e; --city-green: #5f9c88;
  background: var(--mm-marble-dark) center / 700px, linear-gradient(170deg, #1d1b18, #141310); border-color: #2e2b26;
}
:root[data-theme="dark"] .mm-city:hover { color: var(--mm-ink); }
:root[data-theme="dark"] .mm-city-body { background: rgb(15 14 12 / .6); }
:root[data-theme="dark"] .mm-city-name { color: #f1ece2; }
:root[data-theme="dark"] .mm-city-meta { color: #a39c90; }
:root[data-theme="dark"] .mm-city--discovery .mm-city-badge { background: rgb(15 14 12 / .8); color: #a39c90; box-shadow: inset 0 0 0 1px #3d3a33; }


/* ---------- Bento event list ---------- */
.mm-list-head { max-width: var(--mm-max); margin: 0 auto; padding: 2.25rem 1.25rem 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; }
.mm-crumbs { display: flex; gap: .5rem; align-items: center; font-size: .88rem; color: var(--mm-muted); margin-bottom: .8rem; }
.mm-crumbs a { color: var(--mm-muted); text-decoration: none; }
.mm-crumbs a:hover { color: var(--mm-ink); }
.mm-list-art { width: 15rem; color: var(--mm-ink); --city-ink: var(--mm-ink); --city-stone: var(--mm-surface-2); --city-stone2: var(--mm-line-2); --city-paper: var(--mm-bg); --city-gold: var(--mm-gold); --city-green: var(--mm-green); }
.mm-list-art svg { display: block; width: 100%; height: auto; }
.mm-tabs { display: inline-flex; padding: .25rem; gap: .25rem; border-radius: 999px; background: var(--mm-surface-2); border: 1px solid var(--mm-line); margin-top: 1rem; }
.mm-tabs a { padding: .4rem .95rem; border-radius: 999px; color: var(--mm-muted); text-decoration: none; font-weight: 500; font-size: .9rem; }
.mm-tabs a[aria-current="page"] { background: var(--mm-black); color: #f3dfa6; }
.mm-tabs a:not([aria-current]):hover { color: var(--mm-ink); background: var(--mm-surface); }
@media (max-width: 700px) { .mm-list-head { grid-template-columns: 1fr; } .mm-list-art { width: 11rem; order: -1; } }

.mm-bento {
  max-width: var(--mm-max); margin: 0 auto; padding: 0 1.25rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 17rem;
}
@media (max-width: 1100px) { .mm-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .mm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mm-bento { grid-template-columns: 1fr; grid-auto-rows: 16rem; } }


.mm-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background: #1a1916;
  color: #f6f1e7;
  text-decoration: none;
  box-shadow: var(--mm-shadow-sm);
  transition: transform .4s var(--mm-ease), box-shadow .4s var(--mm-ease);
}
.mm-card:hover, .mm-card:focus-visible { color: #fff; transform: translateY(-3px); box-shadow: var(--mm-shadow-lg); }
.mm-card-media { position: absolute; inset: -12px; z-index: -2; background-size: cover; background-position: center; filter: blur(2px) saturate(1.05); opacity: .78; transform: scale(1.04); transition: filter .6s var(--mm-ease), opacity .6s, transform .8s var(--mm-ease); }
.mm-card:hover .mm-card-media { filter: blur(7px) saturate(1.1); opacity: .5; transform: scale(1.1); }
.mm-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 9 8 / .05) 0%, rgb(10 9 8 / .25) 40%, rgb(10 9 8 / .88) 100%); }
.mm-card-inner { position: absolute; inset: 0; padding: 1.1rem 1.2rem 1.15rem; display: flex; flex-direction: column; justify-content: flex-end; }
.mm-card-top { position: absolute; top: .95rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; align-items: start; gap: .5rem; }
.mm-date-chip { display: grid; place-items: center; min-width: 3.1rem; padding: .35rem .4rem .4rem; border-radius: 12px; background: rgb(250 247 240 / .94); color: #171512; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .5); }
.mm-date-chip b { font: 600 .66rem/1 var(--mm-font); letter-spacing: .14em; color: #7b5e1d; text-transform: uppercase; }
.mm-date-chip span { font: 400 1.6rem/1 var(--mm-serif); }
.mm-tag { padding: .28rem .6rem; border-radius: 999px; background: rgb(15 14 12 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #e6c878; font: 600 .68rem/1.2 var(--mm-font); letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgb(214 178 94 / .3); }
.mm-card-title { margin: 0; color: #fff; font: 400 1.65rem/1.05 var(--mm-serif); text-wrap: balance; }
.mm-card-meta { margin: .45rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .86rem; color: #ddd5c6; }
.mm-card-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.mm-card-meta .mm-ico { color: #e6c878; width: 1em; height: 1em; }
.mm-card-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--mm-ease), opacity .35s, margin .45s var(--mm-ease); }
.mm-card-more > div { overflow: hidden; }
.mm-card-more p { margin: .7rem 0 0; font-size: .9rem; line-height: 1.5; color: #e9e2d4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mm-card-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; color: #e6c878; font-weight: 600; font-size: .85rem; }
.mm-card:hover .mm-card-more, .mm-card:focus-visible .mm-card-more { grid-template-rows: 1fr; opacity: 1; }
.mm-host-line { display: inline-flex; align-items: center; gap: .45rem; }
.mm-host-line img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgb(255 255 255 / .5); }

/* Placeholder cards (discovery cities, loading) */
.mm-card--ghost { background: var(--mm-surface); color: var(--mm-ink); border: 1px dashed var(--mm-line-2); box-shadow: none; }
.mm-card--ghost::after { display: none; }
.mm-card--ghost:hover { color: var(--mm-ink); transform: none; box-shadow: none; }
.mm-card--ghost .mm-card-inner { justify-content: center; align-items: start; }
.mm-card--ghost .mm-card-title { color: var(--mm-ink); }
.mm-skel { background: linear-gradient(100deg, var(--mm-surface-2) 30%, var(--mm-surface) 50%, var(--mm-surface-2) 70%); background-size: 300% 100%; animation: mm-shimmer 1.6s linear infinite; border: 0; }
@keyframes mm-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.mm-empty { max-width: var(--mm-max); margin: 1rem auto 0; padding: 0 1.25rem; color: var(--mm-muted); }
.mm-notice { display: flex; gap: .9rem; align-items: start; max-width: var(--mm-max); margin: 0 auto 1.25rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--mm-gold-wash); border: 1px solid rgb(176 138 53 / .3); color: var(--mm-ink-2); font-size: .93rem; }
.mm-notice .mm-ico { color: var(--mm-gold-ink); margin-top: .15rem; }
.mm-notice-wrap { padding: 0 1.25rem; }

/* ---------- Toast ---------- */
.mm-toasts { position: fixed; z-index: 200; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: grid; gap: .5rem; width: min(28rem, calc(100vw - 2rem)); pointer-events: none; }
.mm-toast { pointer-events: auto; padding: .8rem 1.1rem; border-radius: 14px; background: var(--mm-black); color: #f1ece2; border: 1px solid rgb(214 178 94 / .35); box-shadow: var(--mm-shadow-lg); font-size: .93rem; animation: mm-toast-in .35s var(--mm-ease); }
.mm-toast--error { border-color: rgb(240 132 111 / .6); }
@keyframes mm-toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Event pages: shared host chip and guest dialog ---------- */
.mm-host-chip { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem .8rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--mm-line); background: var(--mm-surface); color: var(--mm-ink); font: 500 .92rem var(--mm-font); cursor: pointer; transition: border-color .2s, transform .2s var(--mm-ease); }
.mm-host-chip:hover { border-color: var(--mm-gold); transform: translateY(-1px); }
.mm-host-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.mm-guests { width: min(34rem, calc(100vw - 1.5rem)); }
.mm-guests-rsvp { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1.1rem; }
.mm-chip-btn { padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--mm-line-2); background: var(--mm-surface); color: var(--mm-ink); font: 500 .9rem var(--mm-font); cursor: pointer; transition: all .2s var(--mm-ease); }
.mm-chip-btn:hover { border-color: var(--mm-gold); }
.mm-chip-btn[aria-pressed="true"] { background: var(--mm-black); color: #f3dfa6; border-color: var(--mm-black); }
.mm-guest-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--mm-line); margin-bottom: .6rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.mm-guest-tabs::-webkit-scrollbar { display: none; }
.mm-guest-tabs button { padding: .55rem .8rem; border: 0; background: none; color: var(--mm-muted); font: 500 .9rem var(--mm-font); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.mm-guest-tabs button[aria-selected="true"] { color: var(--mm-ink); border-bottom-color: var(--mm-gold); }
.mm-guest-tabs b { font-weight: 600; color: var(--mm-ink-2); margin-left: .25rem; }
.mm-guest-list { list-style: none; margin: 0; padding: 0; max-height: 18rem; overflow-y: auto; overflow-x: hidden; }
.mm-guest-list li { display: flex; align-items: center; gap: .75rem; padding: .55rem .2rem; border-bottom: 1px solid var(--mm-line); }
.mm-guest-list li:last-child { border-bottom: 0; }
.mm-guest-list .mm-guest-name { flex: 1; min-width: 0; font-weight: 500; }
.mm-guest-list small { display: block; color: var(--mm-muted); font-weight: 400; }
.mm-guest-list small { overflow-wrap: anywhere; }
.mm-g-remove { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--mm-muted); cursor: pointer; }
.mm-g-remove:hover, .mm-g-remove:focus-visible { background: var(--mm-surface-2); color: var(--mm-ink); }
.mm-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--mm-gold-2), var(--mm-green)); color: #fff; font: 600 .8rem var(--mm-font); }
.mm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mm-invite { display: grid; gap: .6rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--mm-line); }
.mm-invite h3 { margin: 0; }
.mm-invite-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; }
.mm-invite input { min-width: 0; padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--mm-line-2); background: var(--mm-bg); color: var(--mm-ink); font: inherit; font-size: .93rem; }
.mm-invite input:focus { outline: none; border-color: var(--mm-gold); box-shadow: 0 0 0 3px rgb(214 178 94 / .18); }
.mm-invite .button { padding: .6rem 1rem; font-size: .9rem; }
@media (max-width: 520px) { .mm-invite-row { grid-template-columns: 1fr; } }
.mm-small { font-size: .85rem; color: var(--mm-muted); }

/* ---------- Event page header (layout "event") ----------
   Event designs restyle everything in <main>. The header stays MacroMeet's,
   tinted by the design through --mm-header-bg / --mm-header-fg. */
.mm-layout-event .mm-footer { margin-top: 0; }

/* ---------- Map page ---------- */
/* The map (an iframe of /map-app/) fills the window under the header; no footer. */
.mm-map-page main.mm-main { display: flex; }
.mm-map-frame { flex: 1; display: block; width: 100%; height: calc(100dvh - var(--mm-header-h) - 1px); border: 0; }
.mm-map-page .mm-footer { display: none; }

@media (max-width: 640px) {
  .mm-header-inner { gap: .75rem; padding: 0 .9rem; }
  .mm-brand-word { font-size: 1.35rem; }
  .mm-nav a { padding: .45rem .6rem; }
  .mm-nav a span { display: none; }
  .mm-account-button span { display: none; }
}
@media (max-width: 380px) { .mm-brand-word { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Host city grid companion card, and the dark-mode city arrow. */
.mm-city--soon { display: flex; flex-direction: column; justify-content: center; gap: .6rem; padding: 1.6rem; background: transparent; border-style: dashed; box-shadow: none; }
.mm-city--soon:hover { transform: none; box-shadow: none; }
.mm-city--soon h3 { margin: 0; font: 400 1.65rem/1.1 var(--mm-serif); color: var(--mm-ink); }
.mm-city--soon p { margin: 0; color: var(--mm-muted); font-size: .93rem; }
.mm-city--soon .button { justify-self: start; align-self: flex-start; margin-top: .4rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mm-city-go { background: #26231e; box-shadow: inset 0 0 0 1px rgb(214 178 94 / .45); } }
:root[data-theme="dark"] .mm-city-go { background: #26231e; box-shadow: inset 0 0 0 1px rgb(214 178 94 / .45); }

/* Card hover: the chips step aside so the details have room. */
.mm-card-top { transition: opacity .3s var(--mm-ease), transform .4s var(--mm-ease); }
.mm-card:hover .mm-card-top, .mm-card:focus-visible .mm-card-top { opacity: 0; transform: translateY(-8px); }
.mm-bento > .mm-card .mm-card-more p { -webkit-line-clamp: 2; }
.mm-card--ghost:hover .mm-card-top { opacity: 1; transform: none; }

/* Host bar (mm-event.js): the top of an event page, for its hosts only. */
/* The invite link page (/i/; assets/invite-link.js). */
.mm-iv { display: grid; place-items: center; min-height: 60vh; padding: 3rem 1rem; }
.mm-iv-card { width: 100%; max-width: 30rem; }
.mm-iv-card h1 { margin: 0 0 .5rem; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.15; }
.mm-iv-loading { color: var(--mm-muted); }
.mm-iv-when { margin: 0 0 1rem; color: var(--mm-ink-2); font-size: 1.05rem; }
.mm-iv-host { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.75rem; color: var(--mm-muted); }
.mm-iv-host img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.mm-iv-host strong { color: var(--mm-ink); font-weight: 600; }
.mm-iv-form { display: grid; gap: .8rem; margin-bottom: 1rem; }
.mm-iv-form .button { justify-self: start; }
.mm-iv-form .mm-small { margin: 0; }
.mm-iv-error { margin: 0; color: var(--mm-danger); font-size: .9rem; font-weight: 500; }

/* An event page whose event can't be shown: a notice in place of the
   design's sample content (mm-event.js gate). */
body.mm-ev-gated #main > :not(.mm-ev-gate) { display: none !important; }
.mm-ev-gate { display: grid; place-items: center; min-height: 60vh; padding: 3rem 1rem; background: var(--mm-bg); color: var(--mm-ink); font-family: var(--mm-font); }
.mm-ev-gate[hidden] { display: none; }
.mm-ev-gate-card { max-width: 30rem; text-align: center; }
.mm-ev-gate-card h1 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; }
.mm-ev-gate-card p { margin: 0 0 1.5rem; color: var(--mm-muted); line-height: 1.5; }
.mm-ev-gate-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

.mm-hostbar { position: relative; z-index: 5; background: var(--mm-surface); border-bottom: 1px solid var(--mm-line); box-shadow: var(--mm-shadow-sm); color: var(--mm-ink); font: 400 .92rem/1.4 var(--mm-font); }
.mm-hostbar-in { max-width: 72rem; margin: 0 auto; padding: .65rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.mm-hostbar-status { padding: .25rem .7rem; border-radius: 999px; font: 600 .72rem/1.2 var(--mm-font); letter-spacing: .08em; text-transform: uppercase; background: var(--mm-surface-2); color: var(--mm-ink-2); }
.mm-hostbar-status--draft { background: var(--mm-gold-wash); color: var(--mm-gold-ink); }
.mm-hostbar-status--published { background: var(--mm-green-wash); color: var(--mm-green); }
.mm-hostbar-status--canceled, .mm-hostbar-status--postponed { background: rgb(163 52 31 / .12); color: var(--mm-danger); }
.mm-hostbar-vis { flex: 1 1 16rem; color: var(--mm-muted); }
.mm-hostbar-vis b { color: var(--mm-ink); font-weight: 600; }
.mm-hostbar-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.mm-hostbar-actions .button { padding: .45rem 1rem; font-size: .88rem; }
.mm-hostbar-note { max-width: 72rem; margin: 0 auto; padding: 0 1rem .65rem; color: var(--mm-muted); font-size: .85rem; }
.mm-hb-settings { width: min(34rem, calc(100vw - 1.5rem)); }
.mm-hb-h { margin: 1.3rem 0 .6rem; font: 600 .78rem/1.2 var(--mm-font); letter-spacing: .08em; text-transform: uppercase; color: var(--mm-muted); }
.mm-hb-options { display: grid; gap: .5rem; }
.mm-hb-option { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-sm); cursor: pointer; }
.mm-hb-option:has(input:checked) { border-color: var(--mm-gold); background: var(--mm-gold-wash); }
.mm-hb-option input { margin-top: .2rem; accent-color: var(--mm-green); }
.mm-hb-option span { display: grid; gap: .1rem; }
.mm-hb-option small { color: var(--mm-muted); font-size: .85rem; }
.mm-hb-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.mm-hb-row .button { padding: .5rem 1.05rem; font-size: .9rem; }
.mm-hb-danger { color: var(--mm-danger); box-shadow: inset 0 0 0 1px rgb(163 52 31 / .45); }
.mm-hb-danger:hover { color: var(--mm-danger); background: rgb(163 52 31 / .08); box-shadow: inset 0 0 0 1px var(--mm-danger); }

/* Your events (/events/mine/): status chips on the cards. */
.mm-card-top .mm-tag--status { background: rgb(246 241 231 / .92); color: #4d3c12; border-color: rgb(176 138 53 / .5); }
.mm-card-top .mm-tag--warn { background: rgb(255 236 230 / .94); color: #8a2c19; border-color: rgb(163 52 31 / .4); }
.mm-mine-section { margin-top: 2.5rem; }
.mm-mine-section > .mm-section-head { margin-bottom: 1rem; }
.mm-mine-gate { padding: 2rem 0; }
.mm-hostbar-preview { background: var(--mm-gold-wash); box-shadow: 0 0 0 100vmax var(--mm-gold-wash); clip-path: inset(0 -100vmax); }
.mm-hostbar-preview .mm-hostbar-vis { color: var(--mm-gold-ink); }
.mm-hostbar-preview .mm-hostbar-vis b { color: var(--mm-gold-ink); }
.mm-hb-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .5rem; }
.mm-hb-style { display: flex; flex-direction: column; gap: .15rem; padding: .75rem .9rem; border: 1px solid var(--mm-line); border-radius: var(--mm-radius-sm); color: var(--mm-ink); font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.mm-hb-style:hover { border-color: var(--mm-gold); background: var(--mm-gold-wash); color: var(--mm-ink); }
.mm-hb-style.is-current { border-color: var(--mm-green-2); }
.mm-hb-style small { color: var(--mm-muted); font-weight: 400; font-size: .8rem; }
/* Invitation texts in the guest dialog (sms: links from the host's phone). */
.mm-g-sms { display: grid; gap: .5rem; justify-items: start; margin: .2rem 0 .8rem; }
.mm-g-sms .mm-small { margin: 0; }
.mm-g-text { text-decoration: none; padding: .3rem .75rem; font-size: .82rem; }
