/* Home page with the templates, and the studio used without an account (guest-studio.js). Loaded last. */
.gh {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px max(4vw, 18px) 20px;
}
.gh-top {
  padding: 12px max(4vw, 18px);
}
.gh-account {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.gh-account:hover,
.gh-account:focus-visible {
  border-color: #39799f;
  color: #2f6687;
}
.gh-account .icon {
  width: 20px;
  height: 20px;
}
.gh-hero {
  position: relative;
  overflow: hidden;
  padding: 64px max(5vw, 20px) 52px;
  text-align: center;
  background: #eef3f7;
}
.gh-collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gh-collage img {
  position: absolute;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(20 40 60 / 18%);
  opacity: 0.4;
  transform: rotate(var(--turn, 0deg));
}
/* The text keeps a calm ground: the collage fades towards the middle. */
.gh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 85% at 50% 50%, #eef3f7 35%, rgb(238 243 247 / 0%) 100%);
}
.gh-hero > :not(.gh-collage) {
  position: relative;
}
.gh-title {
  max-width: 15ch;
  margin: 0 auto 14px;
  font:
    800 clamp(34px, 5.2vw, 58px) / 1.08 Manrope,
    sans-serif;
  letter-spacing: -1.5px;
  color: var(--ink);
}
.gh-quote {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.8vw, 19px);
  font-style: italic;
  color: #3a4f5f;
}
.gh-lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  color: var(--muted);
}
/* An invitation started earlier: one quiet line above the templates. */
.gh-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}
.gh-resume-text {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.gh-resume-text b {
  font-weight: 650;
}
.gh-resume-text span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gh-resume-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.gh-link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.gh-link:hover {
  color: var(--ink);
  text-decoration: underline;
}
.gh-link.is-main {
  color: #2f6687;
}
/* Categories as plain tabs on a thin rule. */
.gh-gallery .tl-chips {
  gap: 4px 22px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.gh-gallery .tl-chip {
  min-height: 40px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.gh-gallery .tl-chip:hover {
  background: none;
  color: var(--ink);
}
.gh-gallery .tl-chip[aria-pressed='true'] {
  border-bottom-color: var(--ink);
  background: none;
  color: var(--ink);
}
.gh-gallery .tg-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) {
  .gh-gallery .tg-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .gh-gallery .tg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* A card is the design alone, edge to edge; the name sits on the picture, the whole card opens the preview. */
.gh-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.gh-card .tg-phone {
  border: 0;
  border-radius: 0;
}
.gh-card .tg-screen {
  aspect-ratio: 390 / 620;
}
.gh-info {
  position: absolute;
  inset: auto 0 0;
  padding: 46px 16px 60px;
  text-align: center;
  background: linear-gradient(transparent, rgb(10 20 30 / 72%));
  color: #fff;
  font-size: 15px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.gh-card:hover .gh-info,
.gh-card:focus-within .gh-info {
  opacity: 1;
}
.gh-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  pointer-events: none;
}
.gh-hit {
  cursor: pointer;
  border-radius: inherit;
}
/* The two icons of a card, shown on hover or focus (always on a screen without hover): edit, and the full preview. */
.gh-actions {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.15s;
}
.gh-card:hover .gh-actions,
.gh-card:focus-within .gh-actions {
  opacity: 1;
}
@media (hover: none) {
  .gh-actions {
    opacity: 1;
  }
}
.gh-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 1px 6px rgb(20 40 60 / 25%);
  color: var(--ink);
  cursor: pointer;
}
.gh-icon:hover,
.gh-icon:focus-visible {
  background: #fff;
  color: #2f6687;
}
.gh-icon .icon {
  width: 19px;
  height: 19px;
}
.gh-empty {
  text-align: center;
  padding: 40px 0;
}
.guest-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px max(3vw, 18px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.guest-bar .logo {
  margin-right: 4px;
}
.guest-note {
  flex: 1;
  min-width: 180px;
  font-size: 13px;
  color: var(--muted);
}
.guest-event-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.guest-event {
  margin-bottom: 18px;
}
.guest-recap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.guest-recap p {
  margin: 0;
}
.guest-later {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}
.guest-later li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px dashed var(--line, #d9d4cc);
  border-radius: 10px;
  font-size: 14px;
}
.guest-later span {
  color: var(--muted);
}
.guest-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecea;
  color: #8a1f17;
  font-size: 14px;
}
.guest-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .gh-info {
    padding: 34px 12px 56px;
    font-size: 13px;
  }
  .gh-badge {
    top: 8px;
    right: 8px;
  }
  .gh-hero {
    padding: 40px 20px 34px;
  }
  .gh-collage {
    display: none;
  }
  .gh-resume {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .gh-gallery .tl-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
  }
  .gh-gallery .tl-chip {
    flex-shrink: 0;
  }
  .guest-note {
    order: 5;
    flex-basis: 100%;
  }
  .guest-event-row {
    grid-template-columns: 1fr;
  }
  .gh-gallery .tg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
.guest-event select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c8d4dc;
  border-radius: 8px;
  background: #fff;
  color: var(--si-ink);
  font-size: 14px;
}
/* On hover a card lifts, its invitation plays its own animations (the gallery's rule) and scrolls through the page
   (cardScroll in guest-studio.js): only the transform moves. At rest it is a still picture. */
.gh-card .tg-scale {
  transform: translateY(var(--ty, 0)) scale(var(--k, 0.45));
  transition: transform var(--dur, 0.5s) linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .gh-card .tg-scale {
    transition: none;
  }
}
/* The cards are simply there: no fade, and no zoom while a thumbnail takes its size (see observeThumbs). */
.gh-card .tg-screen:not([data-ready]) .tg-scale {
  transition: none;
}

/* --- The studio as a full-screen workspace (guestPage in guest-studio.js) -------------------------------------------
   Like the template editor of the administrator: a slim bar, the settings on the left, the phone on the right. */
.gs {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #eef3f7;
}
.gs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--si-line);
  background: #fff;
}
.gs-name {
  flex: 0 1 280px;
  min-width: 120px;
}
.gs-name input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--si-ink);
  font:
    700 17px/1.2 Manrope,
    sans-serif;
  text-overflow: ellipsis;
}
.gs-name input:hover,
.gs-name input:focus {
  border-color: var(--si-line);
  background: #fff;
}
.gs-steps {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  position: static;
}
.gs-bar .sx-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  width: auto;
}
.gs-bar .sx-history {
  gap: 6px;
}
.gs-bar .sx-hbtn {
  width: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
}
.gs-bar .sx-hlabel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.gs-bar .sx-actions .btn.primary {
  min-height: 40px;
  padding: 0 18px;
}
/* A step: its icon, and its name only for the one being worked on. */
.gs-steps .sx-step {
  position: relative;
  min-height: 40px;
  padding: 0 11px;
  gap: 8px;
  border-radius: 10px;
}
.gs-steps .sx-num,
.gs-steps .sx-text small {
  display: none;
}
.gs-steps .sx-text b {
  font-size: 14px;
}
.gs-steps .sx-step:not([aria-selected='true']) .sx-text {
  display: none;
}
.gs-ico {
  display: grid;
  place-items: center;
  color: var(--si-muted);
}
.gs-ico .icon {
  width: 20px;
  height: 20px;
}
.gs-steps [aria-selected='true'] .gs-ico {
  color: var(--si-accent);
}
.gs-steps .sx-step[data-state='done']::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--si-yes);
}
.gs-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.gs-body .sx {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
}
.gs-body .sx-bar {
  display: none;
}
.gs-body .sx-body {
  flex: 1;
  grid-template-columns: minmax(380px, 540px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 0;
  margin: 0;
}
.gs-body .sx-main {
  overflow: auto;
  border: 0;
  border-right: 1px solid var(--si-line);
  border-radius: 0;
}
.gs-body .sx-preview {
  position: static;
  height: auto;
  display: flex;
  flex-direction: column;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 14px 16px 16px;
  border: 0;
  border-radius: 0;
  background: #dde6ee;
}
.gs-body .si-preview-head {
  justify-content: center;
  margin-bottom: 6px;
}
.gs-body .si-preview-head h2 {
  display: none;
}
.gs-body .sx-tip {
  margin: 0 0 12px;
  text-align: center;
}
/* The frame stays where it is: it is the content that scrolls inside it, on a computer as on a phone. */
.gs-body #invitation-live {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(20 40 60 / 14%);
}
.gs-body #invitation-live.mobile-preview {
  width: min(100%, 390px);
  max-height: 820px;
  border-radius: 30px;
  box-shadow: 0 0 0 8px #0d151c;
}
.gs-body .preview-switch {
  display: inline-flex;
  gap: 0;
}
.gs-body .preview-switch .tp-ibtn:first-child {
  border-radius: 10px 0 0 10px;
}
.gs-body .preview-switch .tp-ibtn:last-child {
  margin-left: -1px;
  border-radius: 0 10px 10px 0;
}
.gs-body .preview-switch .tp-ibtn[aria-pressed='true'] {
  background: #dff2fc;
  border-color: #7dbbde;
  color: #1f4f6e;
}
.gs-account {
  flex-shrink: 0;
}
@media (max-width: 1199px) {
  .gs-body .sx-body {
    grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  }
}
/* Phones: the bar keeps what matters, the steps are the bottom bar, the phone opens full screen. */
@media (max-width: 899px) {
  .gs-bar {
    padding: 6px 10px;
    gap: 6px;
  }
  .gs-name {
    flex: 1;
  }
  .gs-steps {
    display: none;
  }
  .gs-bar .sx-actions .tp-ibtn:not(.sx-hbtn) {
    display: none;
  }
  .gs-bar .sx-actions .btn.primary {
    padding: 0 14px;
  }
  .gs-body {
    overflow: auto;
  }
  .gs-body .sx {
    min-height: auto;
    padding-bottom: 84px;
  }
  .gs-body .sx-body {
    display: block;
  }
  .gs-body .sx-main {
    border-right: 0;
    overflow: visible;
  }
  .gs-body .sx-preview {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    padding: 12px;
  }
  .gs-body .sx-preview.is-open {
    display: flex;
  }
  .gs-body #invitation-live.mobile-preview {
    box-shadow: 0 0 0 1px rgb(20 40 60 / 14%);
    border-radius: 14px;
    max-height: none;
  }
  .gs-body .sx-peek {
    width: 52px;
    height: 52px;
    min-height: 0;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .gs-body .sx-peek .icon {
    width: 22px;
    height: 22px;
  }
  .gs-body .sx-close {
    margin-top: 0;
  }
}

.gs-body .sx-dock-step {
  position: relative;
}
.gs-body .sx-dock-step .sx-num {
  display: none;
}
.gs-body .sx-dock-step[aria-current='step'] .gs-ico {
  color: var(--si-accent);
}
.gs-body .sx-dock-step[data-state='done']::after {
  content: '';
  position: absolute;
  top: 6px;
  left: calc(50% + 8px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--si-yes);
}

/* The first block of the content step: who, when, where (event-facts.js) */
.event-facts {
  margin-bottom: 18px;
}
.ef-names {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
}
.ef-names input {
  font:
    700 18px/1.3 Manrope,
    sans-serif;
}
.ef-and {
  padding-bottom: 12px;
  color: var(--si-muted);
  font:
    700 20px/1 Manrope,
    sans-serif;
}
.ef-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .ef-row {
    grid-template-columns: 1fr;
  }
}

.event-facts select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c8d4dc;
  border-radius: 8px;
  background: #fff;
  color: var(--si-ink);
  font-size: 14px;
}
/* In the bar the steps are plain icons (the round ones are for the side menu of a signed-in organiser). */
.gs-steps .sx-step .gs-ico {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--si-muted);
}
.gs-steps .sx-step[data-state='done'] .gs-ico {
  background: none;
  color: var(--si-muted);
}
.gs-steps .sx-step[aria-selected='true'] .gs-ico {
  background: none;
  color: var(--si-accent);
}
.gs-steps .sx-step .gs-ico .icon {
  width: 20px;
  height: 20px;
}

/* The reminder that the draft lives on this device */
.gs-keep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #cfe3ef;
  border-radius: 10px;
  background: #eef6fb;
  font-size: 13px;
}
.gs-keep p {
  margin: 0;
  flex: 1 1 220px;
}
.gs-keep > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gs-keep .si-btn {
  margin: 0;
  min-height: 34px;
}
.gs-keep-x {
  width: 32px;
  height: 32px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5b6b78;
  font-size: 20px;
  line-height: 1;
}
.gs-keep-x:hover {
  background: #dcebf4;
}

/* Legal notice under a form that creates an account, and the "forgotten password" row */
.legal-note {
  margin: 12px 0 0;
  color: var(--si-muted, #5b6b78);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}
.legal-note a {
  color: inherit;
  text-decoration: underline;
}
.forgot-row {
  margin: -6px 0 12px;
  text-align: right;
  font-size: 13px;
}
.public-footer a,
.auth-footer a {
  color: inherit;
  text-decoration: underline;
}

/* Delete my account: quiet in the page and in the menu, serious in the dialog */
.account-delete {
  max-width: 600px;
  margin: 28px 0 0;
}
.account-delete-link {
  padding: 0;
  border: 0;
  background: none;
  color: #8a8f95;
  font: inherit;
  font-size: 12.5px;
  text-decoration: underline;
  text-decoration-color: transparent;
  cursor: pointer;
}
.account-delete-link:hover,
.account-delete-link:focus-visible {
  color: #8a1f17;
  text-decoration-color: currentColor;
}
.del-list {
  margin: 0 0 12px;
  padding-left: 20px;
}
.btn.danger {
  border-color: #b3261e;
  background: #b3261e;
  color: #fff;
}
.btn.danger:hover:not(:disabled) {
  background: #8f1d17;
}
.btn.danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- The dialog that asks for an account before publishing: small and plain --------------------------------------
   Title, the event in one line, Google or Facebook side by side, three fields, one button. */
.modal-box.gd-box {
  width: min(400px, calc(100vw - 24px));
  padding: 22px 24px 20px;
}
.gd-box .modal-title {
  margin-bottom: 4px;
}
.gd-box .modal-title h2 {
  font-size: 21px;
  line-height: 1.25;
}
.gd-recap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--muted, #5b6b78);
  font-size: 13.5px;
}
.gd-recap span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gd-recap b {
  font-weight: 650;
  color: var(--ink, #243746);
}
.gd-recap .text-link {
  flex: none;
  font-size: 13.5px;
}
.social-compact {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.social-compact .social-btn {
  min-height: 42px;
  padding: 0 10px;
  gap: 8px;
  font-size: 14.5px;
}
.gd .social-or {
  margin: 0 0 12px;
}
.gd-field {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
}
.gd-field > span {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink, #243746);
}
.gd-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line, #cdd8e0);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 15px;
}
.gd-field input::placeholder {
  color: #8b99a5;
}
.gd-field input:focus-visible {
  border-color: var(--accent, #2f6687);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(47 102 135 / 18%);
}
.gd .forgot-row {
  margin: -4px 0 10px;
  text-align: right;
  font-size: 13px;
}
.gd form .btn.primary.wide {
  min-height: 44px;
  margin-top: 4px;
}
.gd .legal-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted, #5b6b78);
}
.gd-switch {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line, #e3e9ee);
  text-align: center;
  font-size: 14px;
  color: var(--muted, #5b6b78);
}
@media (max-width: 420px) {
  .modal-box.gd-box {
    padding: 18px 16px 16px;
  }
}
