/* =====================================================================
   Meet Greek Singles — the invitation block ("Invite Friends & Family"), always open, in three places:
   the welcome page (.mgs-invite--welcome), a band above the footer of the homepage (.mgs-invite--home) and a card at the
   bottom of the member's own profile (.mgs-invite--profile). One source: Mgs::inviteBlock() prints the markup, mgs-invite.js
   copies the link. This file stands alone: the member area does not load mgs-home.css, so every custom property has a
   fallback (the values are those of :root in mgs-home.css).
   ===================================================================== */

.mgs-invite { box-sizing: border-box; }
.mgs-invite *, .mgs-invite *::before, .mgs-invite *::after { box-sizing: border-box; }
.mgs-invite [hidden] { display: none !important; }
/* the width the options are laid out by is the width of the block itself, not of the window */
.mgs-invite--welcome, .mgs-invite--profile, .mgs-invite__inner { container-type: inline-size; }

.mgs-invite__title { margin: 0 0 .7rem; font: 700 clamp(1.3rem, 1.2vw + 1.05rem, 1.65rem)/1.2 var(--mgs-serif, Georgia, serif); color: var(--mgs-heading, #083068); }
.mgs-invite__text { margin: 0; }
/* the old button text of the welcome page, now a small gold caps label above the options */
.mgs-invite .mgs-invite__caption { margin: 1.3rem 0 0; font: 800 .78rem/1.3 var(--mgs-sans, "Manrope", "Segoe UI", Roboto, Arial, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--mgs-gold-text, #8f6420); }

/* six tiles: 3 columns by 2 rows, 6 in one row where the block is wide enough, 2 by 3 on very narrow screens; never 4 + 2 or 5 + 1 */
.mgs-invite__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 1.1rem; }
@container (min-width: 600px) { .mgs-invite__options { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 339.98px) { .mgs-invite__options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mgs-invite__option {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 86px; margin: 0; padding: 12px 6px;
  border: 1.5px solid #cdc3af; border-radius: 12px; background: #fff; box-shadow: none; color: var(--mgs-blue-700, #013874);
  font: 700 .86rem/1.2 var(--mgs-sans, "Manrope", "Segoe UI", Roboto, Arial, sans-serif); letter-spacing: 0; text-transform: none; text-decoration: none; text-align: center; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background-color .15s;
}
.mgs-invite__option:hover { border-color: var(--mgs-blue-700, #013874); background: #f4f7fb; color: var(--mgs-blue-700, #013874); text-decoration: none; }
.mgs-invite__option:focus-visible { outline: 3px solid var(--mgs-gold-400, #e3b559); outline-offset: 2px; }
.mgs-invite__option svg { flex: none; width: 26px; height: 26px; }
.mgs-invite__label { display: block; max-width: 100%; overflow-wrap: anywhere; }

/* the note after Copy Link / Instagram / TikTok, with the link to the app's messages */
.mgs-invite .mgs-invite__status { min-height: 1.4em; margin: .8rem 0 0; font-size: .9rem; font-weight: 700; line-height: 1.45; color: #24552b; }
.mgs-invite .mgs-invite__status:empty { min-height: 0; margin: 0; }
.mgs-invite__status a { color: var(--mgs-blue-700, #013874); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.mgs-invite__status a:hover { color: var(--mgs-blue-600, #0a4a92); }

/* ---------- the homepage: a quiet strip in the navy of the footer, between the final call to action and the footer ---------- */
.mgs-invite--home {
  padding: 26px 0 30px; text-align: center;
  background: var(--mgs-navy-900, #001a3a); border-top: 1px solid var(--mgs-gold-400, #e3b559); color: #c9d2e0;
  font: 400 .95rem/1.55 var(--mgs-sans, "Manrope", "Segoe UI", Roboto, Arial, sans-serif);
}
.mgs-invite--home .mgs-invite__inner { max-width: 820px; }
.mgs-invite--home .mgs-invite__title { margin: 0 0 .35rem; font-size: clamp(1.2rem, .8vw + 1rem, 1.45rem); color: #fff; }
.mgs-invite--home .mgs-invite__options { margin-top: 1rem; }
.mgs-invite--home .mgs-invite__option { min-height: 78px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; font-size: .82rem; }
.mgs-invite--home .mgs-invite__option svg { color: var(--mgs-gold-400, #e3b559); }
.mgs-invite--home .mgs-invite__option:hover { border-color: var(--mgs-gold-400, #e3b559); background: rgba(255, 255, 255, .04); color: #fff; }
.mgs-invite--home .mgs-invite__status { color: #e9eef6; }
.mgs-invite--home .mgs-invite__status a { color: var(--mgs-gold-300, #f3c054); }
.mgs-invite--home .mgs-invite__status a:hover { color: #fff; }

/* ---------- the own profile: a card of the family of the checklist (.mgs-prep), the full width of the profile content ---------- */
.mgs-invite--profile {
  clear: both; width: auto; margin: 26px 0 0; padding: 14px 18px 16px; text-align: left;
  background: var(--mgs-cream-50, #fefcf8); border: 1px solid var(--mgs-line, #e6dcc6); border-left: 3px solid var(--mgs-gold-400, #e3b559); border-radius: 10px;
  font-family: var(--mgs-sans, "Manrope", "Segoe UI", Roboto, Arial, sans-serif); font-size: 15px; line-height: 1.45; color: var(--mgs-ink-soft, #4a5566);
}
.mgs-invite--profile .mgs-invite__title { margin: 0 0 4px; font: 600 1.15rem/1.3 var(--mgs-serif, Georgia, serif); color: var(--mgs-heading, #083068); }
body .mgs-invite--profile p.mgs-invite__text { margin: 0; padding: 0; font-size: 14px; }
.mgs-invite--profile .mgs-invite__options { margin-top: 12px; }
.mgs-invite--profile .mgs-invite__option { min-height: 78px; font-size: 13px; }
.mgs-invite--profile .mgs-invite__status { margin-top: 10px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { .mgs-invite__option { transition: none; } }
