#main.placeholder-page { width: min(1120px, calc(100% - 32px)); }
#main.placeholder-page h1 { max-width: none; }
.event-card { max-width: 1120px; margin: 28px 0; }
.event-card { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 36px; align-items: start; }
.event-picture { width: auto; height: auto; max-width: 100%; max-height: 600px; justify-self: start; border-radius: 12px; }
.event-description { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: 1.1rem; line-height: 1.75; }
.event-card:not(:has(.event-picture)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 720px) {
  .event-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .event-picture { max-width: min(100%, 460px); max-height: 560px; margin-inline: auto; }
}
#event-editor { max-width: 760px; padding: 24px; margin: 32px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
#event-form { display: grid; gap: 12px; }
#event-form label { font-weight: bold; }
#event-form input, #event-form textarea { width: 100%; min-width: 0; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
#event-form textarea { resize: vertical; }
#event-form button { justify-self: start; }
#event-status { color: var(--muted); }

#event-editor .button,
#event-sign-out-area .button {
  color: white;
  cursor: pointer;
  transition: background-color 150ms ease;
}
#event-form .button { background: var(--blue); }
#event-form .button:hover:not(:disabled),
#event-form .button:focus-visible { background: var(--blue-dark); }
#event-sign-out-area .event-sign-out { background: var(--red); }
#event-sign-out-area .event-sign-out:hover,
#event-sign-out-area .event-sign-out:focus-visible { background: #941f28; }
#event-editor .button:focus-visible,
#event-sign-out-area .button:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 3px; }
#event-editor .button:disabled { opacity: 0.65; cursor: wait; }

#main.placeholder-page { display: flex; flex-direction: column; min-height: 70vh; }
#event-sign-out-area { margin-top: auto; padding-top: 32px; border-top: 1px solid var(--line); }

.event-card { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.event-details { min-width: 0; }
.event-details h2 { margin: 0 0 16px; overflow-wrap: anywhere; }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.event-actions .button { cursor: pointer; color: white; transition: background-color 150ms ease; }
.event-actions .primary { background: var(--blue); }
.event-actions .primary:hover { background: var(--blue-dark); }
.event-actions .event-delete { background: var(--red); }
.event-actions .event-delete:hover { background: #941f28; }
#event-form .secondary { background: #687078; }
#event-form .secondary:hover { background: #49515a; }
#cancel-edit[hidden] { display: none; }
