/* ==========================================================================
   Vote reminders card. Inherits .card, .form-row and the buttons from
   style.css · everything here is the small amount that is specific to it.
   ========================================================================== */

.reminder-card {
  border-left: 3px solid var(--accent);
}

.reminder-card .card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reminder-form {
  margin-top: 12px;
}

/* The name field is short by nature · a full-width input reads as "long answer". */
.reminder-form .form-row input[name="ign"] {
  max-width: 16rem;
}

.reminder-push {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 4px 0 14px;
}

.reminder-push [data-reminder-status] {
  margin: 0;
  flex: 1 1 14rem;
  min-width: 0;
}

/* On = a quieter button. The loud primary is for the action not yet taken. */
.reminder-push .btn[aria-pressed="true"] {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.reminder-email {
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
  margin-top: 4px;
}

.reminder-email > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .92rem;
  padding: 4px 0;
}

.reminder-email > summary:hover {
  color: var(--text);
}

.reminder-email[open] > summary {
  margin-bottom: 10px;
}

.reminder-email .form-row input[type="email"] {
  max-width: 22rem;
}

.reminder-foot {
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  margin-top: 14px;
}

@media (max-width: 560px) {
  .reminder-push .btn { width: 100%; }
  .reminder-form .form-row input[name="ign"],
  .reminder-email .form-row input[type="email"] { max-width: none; }
}
