/*
 * MemberPress ReadyLaunch pages (Login, sign-up checkout, My Membership, Thank you) in Design 1.
 * Loaded by inc/readylaunch.php on those pages only; mnf.css isn't there (ReadyLaunch strips it),
 * so the fonts and tokens are repeated here. MemberPress prints its primary colour with
 * !important, so the colour rules below need it too.
 */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}

body.mepr-pro-template {
  --mnf-curtain: #0d6670;
  --mnf-curtain-deep: #094c54;
  --mnf-pink: #df8ac3;
  --mnf-pink-hover: #e9a3d2;
  --mnf-pink-btn: #eaade7;
  --mnf-pink-btn-hover: #f2c6ef;
  --mnf-ink: #12302f;
  --mnf-pleats: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 34px, rgba(255,255,255,.035) 34px 46px, rgba(0,0,0,.055) 46px 70px, rgba(255,255,255,0) 70px 80px);
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--mnf-ink);
  -webkit-font-smoothing: antialiased;
}
body.mepr-pro-template :is(button, input, select, textarea, .button) { font-family: inherit; }
body.mepr-pro-template :is(h1, h2, h3, h4) { font-family: 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.02em; color: var(--mnf-ink); }
body.mepr-pro-template :focus-visible { outline: 3px solid var(--mnf-pink); outline-offset: 3px; }

/* The curtain: login's backdrop and the top bar on the other pages. */
html body.mepr-pro-template.mepr-guest-layout,
html body.mepr-pro-template .app-layout .site-header,
html body.mepr-pro-template .guest-layout .site-header {
  background-color: var(--mnf-curtain) !important;
  background-image: var(--mnf-pleats) !important;
}
body.mepr-pro-template .site-branding__logo { height: 58px; width: auto; max-width: 70vw; }
/* Same size as the site header's logo (60px on desktop); phones a touch larger than its 44px. */
body.mepr-pro-template .app-layout .site-header .site-branding__logo { height: 60px; }
@media (max-width: 767px) { body.mepr-pro-template .app-layout .site-header .site-branding__logo { height: 48px; } }
/* ReadyLaunch pins the logo to the left edge, away from the centred form: centre it in the bar. */
html body.mepr-pro-template .site-header { display: flex !important; justify-content: center !important; align-items: center; padding-block: 14px !important; }
body.mepr-pro-template .site-header .site-branding { margin: 0 auto !important; padding: 0 !important; text-align: center; }
body.mepr-pro-template .site-header .site-branding a { display: block; line-height: 0; }

/* Links and buttons as on the rest of the site. The id ancestor beats MemberPress's #mepr-template-login rules. */
body.mepr-pro-template a:not(.button):not([class*="profile-menu"]) { color: var(--mnf-curtain); }
body.mepr-pro-template :is(#page, #mepr-template-login) :is(input.button-primary, input.mepr-submit, .mepr-submit, button.mepr-submit, .mepr-share-button) {
  min-height: 48px;
  padding: 0 1.6em;
  border: 0;
  border-radius: 999px;
  background: var(--mnf-pink-btn);
  color: var(--mnf-ink);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
body.mepr-pro-template :is(#page, #mepr-template-login) :is(input.button-primary, input.mepr-submit, .mepr-submit, button.mepr-submit, .mepr-share-button):hover { background: var(--mnf-pink-btn-hover); }
body.mepr-pro-template .button.btn-outline,
body.mepr-pro-template .mepr-account-actions .button {
  border-radius: 999px;
  border-color: var(--mnf-curtain);
  color: var(--mnf-curtain);
}

/* Fields: the site's rounded inputs. */
body.mepr-pro-template :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea) { border-radius: 10px; }

/* Sign-up checkout (inc/readylaunch.php adds the plan, the included list, the step headings and the Stripe note). */
body.mepr-pro-template { --mnf-wall: #eef6f6; --mnf-pink-ink: #b24d8f; --mnf-ink-soft: #3e5b5c; --mnf-line: #cddcdc; }
body.mepr-pro-template .mnf-co .invoice-wrapper { background: var(--mnf-wall); border-radius: 16px; padding: 32px !important; align-self: start; position: sticky; top: 24px; margin-top: 8px; }
body.mepr-pro-template .mnf-co .invoice-heading {
  font: 700 .82rem/1.2 'Figtree', system-ui, sans-serif !important; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mnf-pink-ink) !important; margin-bottom: 10px;
}
body.mepr-pro-template .mnf-co .mepr_price { display: none !important; } /* the bare "Recurring": the plan below says it */
.mnf-co-plan { margin: 0 0 22px; }
.mnf-co-plan b { display: block; font: 800 clamp(1.9rem, 3vw, 2.4rem)/1.1 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.02em; color: var(--mnf-curtain-deep); }
.mnf-co-plan span { display: block; margin-top: 6px; font-weight: 600; color: var(--mnf-ink-soft); }
body.mepr-pro-template .mnf-co .mp-cart-item-image { width: 48px; height: 48px; flex: none; border-radius: 50%; background: #fff url('../img/logo/mnf-mark.svg') center / 80% no-repeat; box-shadow: 0 0 0 1px var(--mnf-line); }
body.mepr-pro-template .mnf-co .mp-cart-item-image img { display: none; }
body.mepr-pro-template .mnf-co .mp-cart-item-details p:first-child { font-weight: 700; color: var(--mnf-ink); }
body.mepr-pro-template .mnf-co .mp-cart-item-details .desc { display: none; }
body.mepr-pro-template .mnf-co .mp-currency-cell { font-weight: 700; color: var(--mnf-ink); }
body.mepr-pro-template .mnf-co .mp-cart-footer .mp-cart-total, body.mepr-pro-template .mnf-co .mp-cart-footer .mp-cart-total * { font-weight: 800; color: var(--mnf-ink); font-size: 1.1rem; }
.mnf-co-included { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--mnf-line); }
.mnf-co-included h2 { font-size: 1.15rem !important; font-weight: 800; margin: 0 0 10px; }
.mnf-co-included ul { list-style: none; margin: 0; padding: 0; }
.mnf-co-included li { position: relative; padding: 6px 0 6px 1.9em; line-height: 1.45; color: var(--mnf-ink); }
.mnf-co-included li::before {
  content: ''; position: absolute; left: 0; top: .55em; width: 1.15em; height: 1.15em; background: var(--mnf-pink-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mnf-co-included p { margin: 14px 0 0 !important; font-size: .92rem; line-height: 1.55; color: var(--mnf-ink-soft); }

/* The form: one field style, step headings, labels in ink. */
.mnf-co .mnf-co-step { font-size: 1.25rem !important; font-weight: 800; margin: 34px 0 14px !important; padding-top: 22px; border-top: 1px solid var(--mnf-line); }
.mnf-co .form-wrapper > .mnf-co-step:first-of-type { margin-top: 0 !important; padding-top: 0; border-top: 0; }
body.mepr-pro-template .mnf-co .mp-form-label label:not(.placeholder-text),
body.mepr-pro-template .mnf-co .mp-form-row > label { font-weight: 600; color: var(--mnf-ink); font-size: .95rem; }
body.mepr-pro-template .mnf-co .mepr-form-input,
body.mepr-pro-template .mnf-co select.mepr-form-input { min-height: 48px; border: 1px solid var(--mnf-line) !important; border-radius: 10px !important; background-color: #fff; color: var(--mnf-ink); box-shadow: none; }
body.mepr-pro-template .mnf-co .mepr-form-input:focus { border-color: var(--mnf-curtain) !important; box-shadow: 0 0 0 3px rgba(13, 102, 112, .18) !important; outline: none; }
body.mepr-pro-template .mnf-co .iti { width: 100%; }
body.mepr-pro-template .mnf-co .mp-form-row.mepr_custom_field label:has(input[type="checkbox"]),
body.mepr-pro-template .mnf-co label:has(> input[type="checkbox"]) { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; font-weight: 400; }
/* MemberPress gives the tick-box labels the text-box class too: undo the box. */
body.mepr-pro-template .mnf-co label.mepr-checkbox-field.mepr-form-input { display: flex !important; gap: 10px; align-items: flex-start; min-height: 0; padding: 0 !important; border: 0 !important; background: none; box-shadow: none !important; line-height: 1.45; font-weight: 400; color: var(--mnf-ink); }
body.mepr-pro-template .mnf-co input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--mnf-curtain); }
body.mepr-pro-template .mnf-co .mp-password-strength-area .mp-password-strength-display { border-radius: 8px; border: 1px solid var(--mnf-line); background: var(--mnf-wall); color: var(--mnf-ink-soft); }
.mnf-co-secure { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--mnf-wall); font-size: .92rem; line-height: 1.45; color: var(--mnf-ink-soft); }
.mnf-co-secure svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--mnf-curtain); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.mepr-pro-template .mnf-co input.mepr-submit { width: 100%; }
@media (max-width: 767px) { body.mepr-pro-template .mnf-co .invoice-wrapper { position: static; padding: 22px !important; margin: 16px 16px 0; } }

/* Login: "Not a member yet? Join" under the form (inc/meetups.php) */
.mnf-login-join { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(13, 102, 112, .15); text-align: center; color: var(--mnf-ink-soft, #3e5b5c); }
body.mepr-pro-template .mnf-login-join a.mnf-login-join-btn {
  display: flex; align-items: center; justify-content: center; margin-top: 12px;
  min-height: 48px; padding: 0 1.6em; border-radius: 999px;
  background: var(--mnf-curtain); color: #fff; font-weight: 700; text-decoration: none;
}
body.mepr-pro-template .mnf-login-join a.mnf-login-join-btn:hover { background: var(--mnf-curtain-deep); color: #fff; }

/*
 * Login: MemberPress raises the Username / Password label only on keyup, so a login filled in
 * by the browser or phone (saved passwords, paste) left the label over the text (Michelle, 24 Nov).
 * Raise it while the box has focus or is autofilled; inc/readylaunch.php adds .active for the rest.
 */
#mepr_loginform .mp-form-row:focus-within label.placeholder-text,
#mepr_loginform .mp-form-row label.placeholder-text.active {
  transform: translate(0, -20px);
  padding: 0 5px;
  background: #fff;
  color: var(--mnf-curtain);
  font-size: 13px !important;
}
#mepr_loginform .mp-form-row:has(input:-webkit-autofill) label.placeholder-text {
  transform: translate(0, -20px); padding: 0 5px; background: #fff; color: var(--mnf-curtain); font-size: 13px !important;
}
#mepr_loginform .mp-form-row:has(input:autofill) label.placeholder-text {
  transform: translate(0, -20px); padding: 0 5px; background: #fff; color: var(--mnf-curtain); font-size: 13px !important;
}

/*
 * Thank you page (Michelle, 24 Nov 2026: more colourful). The pink pleated curtain behind a white
 * card; a teal curtain band with confetti across the card's top, the tick as a pink badge on its
 * edge, then the welcome, the Meetups button, and the order in a quiet box. MemberPress's markup is
 * fixed, so the card is a flex column and `order` sets the running order.
 */
body.mepr-thankyou-page { --mnf-pink-pale: #fbe9f4; --mnf-pink-on-dark: #f4bfe2; --mnf-teal: #188f9b; }
body.mepr-thankyou-page { background: var(--mnf-pink) var(--mnf-pleats) !important; }
body.mepr-thankyou-page #primary,
body.mepr-thankyou-page .site-main {
  background: none !important;
  padding: clamp(28px, 6vw, 64px) 16px clamp(40px, 8vw, 88px) !important;
}
body.mepr-thankyou-page .mepr-checkout-container.thankyou { display: block !important; max-width: 640px; margin: 0 auto !important; padding: 0 !important; }
body.mepr-thankyou-page .mepr-checkout-container.thankyou > .form-wrapper { display: none; }
body.mepr-thankyou-page .invoice-wrapper.thankyou {
  display: flex !important; flex-direction: column; align-items: stretch;
  position: relative; overflow: hidden; width: auto !important; max-width: none !important; margin: 0 !important;
  padding: 0 clamp(20px, 5vw, 44px) clamp(28px, 5vw, 40px) !important;
  background: #fff; border-radius: 24px; box-shadow: 0 30px 60px -24px rgba(9, 76, 84, .55);
  text-align: center;
}
/* The band: teal curtain with pink, white and light teal confetti. */
body.mepr-thankyou-page .invoice-wrapper.thankyou::before {
  content: ''; order: 0; display: block; height: 128px; margin: 0 calc(-1 * clamp(20px, 5vw, 44px));
  background:
    radial-gradient(circle at 8% 30%, var(--mnf-pink) 0 5px, transparent 6px),
    radial-gradient(circle at 18% 72%, #fff 0 3px, transparent 4px),
    radial-gradient(circle at 27% 22%, var(--mnf-pink-on-dark) 0 4px, transparent 5px),
    radial-gradient(circle at 36% 58%, var(--mnf-teal) 0 6px, transparent 7px),
    radial-gradient(circle at 64% 26%, #fff 0 4px, transparent 5px),
    radial-gradient(circle at 72% 66%, var(--mnf-pink) 0 6px, transparent 7px),
    radial-gradient(circle at 83% 20%, var(--mnf-teal) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 60%, var(--mnf-pink-on-dark) 0 5px, transparent 6px),
    var(--mnf-pleats),
    var(--mnf-curtain);
}
body.mepr-thankyou-page .invoice-wrapper.thankyou svg.thankyou {
  order: 1; align-self: center; width: 96px !important; height: 96px !important; margin: -48px 0 18px !important; padding: 18px;
  border-radius: 50%; background: var(--mnf-pink); color: #fff !important; stroke: #fff; stroke-width: 2.2;
  box-shadow: 0 0 0 6px #fff, 0 14px 26px -10px rgba(178, 77, 143, .7);
}
body.mepr-thankyou-page .invoice-wrapper.thankyou svg.thankyou path:first-child { d: path("M7.5 12.75L10.5 15.75 16.5 8.75"); }
body.mepr-thankyou-page .invoice-wrapper.thankyou > h1 {
  order: 2; margin: 0 0 12px !important; font-size: clamp(1.9rem, 5vw, 2.6rem) !important; font-weight: 800 !important; line-height: 1.08;
  color: var(--mnf-curtain-deep) !important;
}
body.mepr-thankyou-page .mnf-ty-welcome { order: 3; margin: 0 auto !important; max-width: 30em; font-size: 1.1rem; line-height: 1.55; color: var(--mnf-ink-soft); }
body.mepr-thankyou-page .mnf-ty-next { order: 4; margin: 24px 0 30px !important; }
/* The order: one quiet box (Payment successful and the order number, then the invoice). */
body.mepr-thankyou-page .invoice-wrapper.thankyou > .mepr_price { display: none !important; } /* the invoice's Total says it */
body.mepr-thankyou-page .invoice-wrapper.thankyou > .mepr-order-no {
  order: 5; margin: 0 !important; padding: 18px 20px 6px; border-radius: 16px 16px 0 0; background: var(--mnf-pink-pale);
  font-size: .9rem; color: var(--mnf-ink-soft);
}
body.mepr-thankyou-page .invoice-wrapper.thankyou > .mepr-order-no p { margin: 0 !important; }
body.mepr-thankyou-page .invoice-wrapper.thankyou > .mepr-order-no p:first-child { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mnf-pink-ink); margin-bottom: 2px !important; }
body.mepr-thankyou-page .invoice-wrapper.thankyou > .mepr-order-no p:last-child { word-break: break-all; }
body.mepr-thankyou-page .invoice-wrapper.thankyou > div:has(> .mp_invoice) { order: 6; padding: 4px 20px 16px; border-radius: 0 0 16px 16px; background: var(--mnf-pink-pale); text-align: left; }
body.mepr-thankyou-page .mp_invoice, body.mepr-thankyou-page .mp_invoice .mp-table { background: none !important; margin: 0 !important; padding: 0 !important; }
body.mepr-thankyou-page .mp_invoice .mp-cart-item { padding-left: 0 !important; padding-right: 0 !important; }
body.mepr-thankyou-page .mp_invoice .mp-cart-item-image { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff url('../img/logo/mnf-mark.svg') center / 80% no-repeat; }
body.mepr-thankyou-page .mp_invoice .mp-cart-item-image img { display: none; }
body.mepr-thankyou-page .mp_invoice .mp-cart-item-details p:first-child,
body.mepr-thankyou-page .mp_invoice .mp-currency-cell { font-weight: 700; color: var(--mnf-ink); }
body.mepr-thankyou-page .mp_invoice .mp-cart-footer { border-color: rgba(178, 77, 143, .25) !important; }
body.mepr-thankyou-page .mp_invoice .mp-cart-footer, body.mepr-thankyou-page .mp_invoice .mp-cart-footer * { font-weight: 800; color: var(--mnf-ink); }
body.mepr-thankyou-page .invoice-wrapper.thankyou > p:last-child { order: 7; margin: 18px 0 0 !important; }
body.mepr-thankyou-page .invoice-wrapper.thankyou > p:last-child a { font-weight: 600; }

/* Thank you page: "Find a meet-up" button (inc/readylaunch.php) */
.mnf-ty-next { margin: 28px 0 8px; text-align: center; }
body.mepr-pro-template a.mnf-ty-meetups {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 2.2em; border-radius: 999px;
  background: var(--mnf-pink-btn); color: var(--mnf-ink); font-weight: 800; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 10px 20px -10px rgba(178, 77, 143, .8);
}
body.mepr-pro-template a.mnf-ty-meetups:hover { background: var(--mnf-pink-btn-hover); color: var(--mnf-ink); }
