/* ════════════════════════════════════════════════════════════
   FINDER MODAL STYLES: shared by the home page and /launch (public/finder.js draws the modal).
   ════════════════════════════════════════════════════════════ */
/* dark top bar of the modal (same navy panel and hatching as the home page) */
.mm-top { background: var(--navy); color: var(--mist); position: relative; overflow: hidden; }
.mm-top .motif-hatch {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(120deg, rgba(238,242,243,0.07) 0 2px, transparent 2px 13px);
}
/* ── MATCH MODAL (light / mist) ── */
.mm-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(22,34,60,0.45); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.mm-overlay.show { display: flex; animation: mmFade .2s ease; }
@keyframes mmFade { from { opacity: 0; } to { opacity: 1; } }
.mm-modal {
  width: 100%; max-width: 560px; max-height: 92vh;
  background: var(--mist); color: var(--navy);
  border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 0 28px rgba(255,255,255,0.16), 0 24px 60px rgba(0,0,0,0.45);
  animation: mmRise .28s cubic-bezier(.2,.8,.3,1);
}
@keyframes mmRise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.mm-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
}
.mm-tag { font-family: var(--disp); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; position: relative; z-index: 1; font-weight: 700;
}
.mm-close {
  background: none; border: 0; color: #fff; position: relative; z-index: 1; font-size: 22px;
  line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 8px;
}
.mm-close:hover { color: #fff; background: rgba(238,242,243,0.16); }
.mm-progress { height: 3px; background: var(--hair); }
.mm-progress span { display: block; height: 100%; background: var(--signal); width: 0; transition: width .35s ease; }
.mm-body { padding: 30px 28px 32px; overflow-y: auto; }
.mm-screen { display: none; animation: mmSlide .3s ease; }
.mm-screen.show { display: block; }
@keyframes mmSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mm-ey { font-family: var(--disp); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin-bottom: 10px; font-weight: 700;
}
.mm-h2 { font-family: var(--disp); font-weight: 700; font-size: 26px; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 22px; color: var(--navy); }
.mm-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.mm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.mm-back { background: none; border: 0; color: var(--navy); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 10px 4px; }
.mm-back:hover { color: var(--deep); }
.mm-next {
  font-family: var(--disp); font-weight: 600; font-size: 16px; line-height: 20px;
  height: 48px; min-width: 160px; padding: 14px 28px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--signal); color: #fff;
  transition: filter .15s, transform .15s; flex-shrink: 0;
}
.mm-next:hover { filter: brightness(1.05); transform: translateY(-1px); }
.mm-next:active { background: #D2522C; }

/* role step */
.mm-role-in { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 18px; }
.mm-role-in input {
  flex: 1; min-width: 200px; font: inherit; font-size: 16px;
  padding: 14px 16px; border: 1px solid var(--hair); border-radius: 11px;
  background: #fff; color: var(--navy);
}
.mm-role-in input:focus { outline: 3px solid var(--signal); outline-offset: 2px; border-color: transparent; }

/* acknowledgment line (Q1 only) */
.mm-ack { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
/* one-at-a-time question options */
.mm-opts { display: flex; flex-direction: column; gap: 11px; }
.mm-opt {
  display: flex; align-items: center; gap: 13px; width: 100%;
  text-align: left; font: inherit; font-size: 16px; font-weight: 500;
  padding: 16px 18px; border-radius: 13px;
  border: 1.5px solid rgba(95,177,189,0.3);
  background: rgba(95,177,189,0.06); color: var(--navy);
  cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s, transform .1s;
}
.mm-opt:hover { border-color: var(--aqua); background: rgba(95,177,189,0.12); box-shadow: 0 3px 10px rgba(95,177,189,0.15); }
.mm-opt:active { transform: scale(0.99); }
.mm-opt .mm-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(95,177,189,0.45); flex: none; transition: all .18s;
}
.mm-opt:hover .mm-dot { border-color: var(--aqua); }
.mm-opt.sel { border-color: var(--deep); background: rgba(20,96,109,0.07); box-shadow: 0 3px 10px rgba(20,96,109,0.1); }
.mm-opt.sel .mm-dot { border-color: var(--deep); background: var(--deep); box-shadow: inset 0 0 0 3px var(--mist); }

/* helper text after an option label */
.mm-help { color: var(--muted); font-weight: 400; }

/* reading path flow — card layout */
.mm-beat { margin-bottom: 16px; }
.mm-beat .lab { font-family: var(--disp); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin-bottom: 5px; font-weight: 700;
}
.mm-beat p { font-size: 15px; color: var(--navy); line-height: 1.55; }
.mm-beat p b { color: var(--navy); font-weight: 600; }
/* position block at the top of the reading */
.mm-pos-h { margin-bottom: 8px; }
.mm-beat p + p { margin-top: 8px; }
.mm-pos-h .pos-name { color: var(--deep); }
.mm-pos-event { font-size: 15px; line-height: 1.55; margin: -6px 0 18px; }
.mm-pos-event a { color: var(--deep); font-weight: 600; text-underline-offset: 3px; }
.mm-pos-id { font-family: var(--disp); font-weight: 600; font-size: 19px; letter-spacing: -.005em; line-height: 1.25; color: var(--navy); margin-bottom: 20px; }
.mm-suggest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mm-pick-hint { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 10px; }
.mm-suggest li { background: #fff; border: 2px solid transparent; border-radius: 14px; font-size: 15px; line-height: 1.5; color: var(--navy); transition: border-color .18s, background .18s, box-shadow .18s; }
.mm-suggest li:hover { border-color: var(--aqua); }
.mm-suggest li.sel { border-color: var(--deep); background: rgba(20,96,109,0.07); box-shadow: 0 3px 10px rgba(20,96,109,0.1); }
.mm-pick { display: flex; align-items: flex-start; gap: 12px; width: 100%; margin: 0; padding: 14px 16px; background: none; border: 0; border-radius: 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mm-pick:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }
.mm-pick .mm-dot { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid rgba(95,177,189,0.45); flex: none; transition: all .18s; }
.mm-suggest li.sel .mm-dot { border-color: var(--deep); background: var(--deep); box-shadow: inset 0 0 0 3px #fff; }
.mm-pick-body { display: block; min-width: 0; }
.mm-suggest li strong { display: block; font-family: var(--disp); font-weight: 700; font-size: 17px; line-height: 1.2; margin-bottom: 4px; }
.mm-pick-body > span { display: block; }
.mm-suggest li em { display: block; margin-top: 6px; font-style: normal; font-size: 14px; color: var(--muted); }
.mm-note { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 12px; }
.mm-closing { font-size: 15px; color: var(--navy); line-height: 1.55; margin: 22px 0 16px; }
.mm-feetwet {
  font-family: var(--disp); font-weight: 600; font-size: 16px; line-height: 20px;
  height: 48px; min-width: 160px; padding: 14px 28px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--signal); color: #fff;
  transition: filter .15s, transform .15s;
}
.mm-feetwet:hover { filter: brightness(1.05); transform: translateY(-1px); }
.mm-feetwet:active { background: #D2522C; }


@media (max-width: 768px) {
  .mm-overlay { padding: 0; }
  .mm-modal { max-width: none; max-height: 100vh; height: 100vh; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .mm-body { padding: 26px 22px calc(30px + env(safe-area-inset-bottom)); }
  .mm-foot { flex-direction: column; align-items: stretch; }
  .mm-back { align-self: flex-start; }
  .mm-next { width: 100%; min-width: 0; }
  .mm-feetwet { width: 100%; min-width: 0; }
}
