/* ═══════════════════════════════════════════════════════════════════════
   Ready-made invites (js/invites.js). Set --invite-accent on the section
   to change the focus color; defaults to the brand gold.
   ═══════════════════════════════════════════════════════════════════════ */

.invites { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 1rem; }
.invite {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.invite[hidden] { display: none; }
.invite h3 { font-size: 1.1rem; }
.invite textarea {
  flex: none; /* its height is set to fit the text (js/invites.js) */
  width: 100%;
  min-height: 6rem;
  overflow: hidden;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
}
.invite textarea:focus { outline: none; border-color: var(--invite-accent, var(--gold)); }
.invite__actions { display: flex; gap: 0.5rem; margin-top: auto; }
.invite__actions .btn { flex: 1; justify-content: center; }

/* Jump links stop below the fixed header. */
html { scroll-padding-top: calc(var(--header-h) + var(--banner-h, 0px) + 1.25rem); }
